Update Metadata
Metadata for landing page templates can be updated via the Update Landing Page Template Metadata endpoint. Name, description and the enableMunchkin setting may be updated this way.
Update Content
Content in Landing Page Templates is made as a destructive update to the entirety of the HTML content. The content must be passed as multipart/form-data, with the only parameter being named content.
POST /rest/asset/v1/landingPageTemplate/286/content.json
content-type: multipart/form-data; boundary=--------------------------435851813185237176536801
----------------------------435851813185237176536801
Content-Disposition: form-data; name="content"; filename="content.txt"
Content-Type: text/plain
<html>
<head>
</head>
<body>
<div>Placeholder Content</div>
</body>
</html>
----------------------------435851813185237176536801--
{
"success": true,
"warnings": [],
"errors": [],
"requestId": "7516#14e0dc60bbc",
"result": [
{
"id": 286
}
]
}
Clone
Marketo provides a simple method for cloning a Landing Page Templates. This is an application/x-www-url-formencoded POST request.
The id
path parameter specifies the id of the source Landing Page Template to clone.
The name
parameter is used to specify the name of the new Landing Page Template.
The folder
parameter is used to specify the parent folder where new Landing Page Template will reside. This is in the form of an embedded JSON object containing id
and type
.
The optional description
parameter is used to describe the new Landing Page Template.
POST /rest/asset/v1/landingPageTemplate/{id}/clone.json
Content-Type: application/x-www-form-urlencoded
name=Standard Template Clone&folder={"type": "Folder", "id": 732}
{
"success": true,
"errors": [],
"requestId": "dee6#1683e9fd410",
"warnings": [],
"result": [
{
"id": 61,
"name": "Standard Template Clone",
"createdAt": "2019-01-11T20:34:48Z+0000",
"updatedAt": "2019-01-11T20:34:48Z+0000",
"url": "https://app-abm.marketo.com/#LT61B2ZN732",
"folder": {
"type": "Folder",
"value": 732,
"folderName": "Test LP Template Clone"
},
"status": "draft",
"workspace": "Default",
"templateType": "freeForm",
"enableMunchkin": true
}
]
}