I'm trying to create a static list inside the program
Program:
{
"id": 1010,
"name": "ProgramWebRequest",
"description": "Program for campaigns",
"createdAt": "2025-12-05T12:28:39Z+0000",
"updatedAt": "2025-12-05T12:28:39Z+0000",
"url": "",
"type": "Default",
"channel": "Web Request",
"folder": {
"type": "Folder",
"value": 71,
"folderName": "MyFolder"
},
"status": "",
"workspace": "Default",
"tags": [],
"costs": []
}
]
cURL command:
curl --location '[HOST]/rest/asset/v1/staticLists.json
' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'folder={"id": 1010, "type": "Program"}' \
--data-urlencode 'name=List API'{
"requestId": "cada#19aee8d28ab",
"success": false,
"warnings": [],
"errors": [
{
"code": "610",
"message": "Requested resource not found"
}
]
}{
"name": "Design Folder API",
"description": "email templates",
"createdAt": "2025-12-05T11:56:10Z+0000",
"updatedAt": "2025-12-05T11:56:10Z+0000",
"url": "",
"folderId": {
"id": 83,
"type": "Folder"
},
"folderType": "Email Template",
"parent": {
"id": 27,
"type": "Folder"
},
"path": "/Design Studio/Default/Emails/Templates/Design Folder API",
"isArchive": false,
"isSystem": false,
"accessZoneId": 1,
"workspace": "Default",
"id": 83
}
cURL command:
curl --location '[HOST]/rest/asset/v1/emailTemplates.json
' \
--form 'name="Email Template API"' \
--form 'folder="{\"id\":83,\"type\":\"Folder\"}"' \
--form 'content=@"/path/to/template1.html"'
response is similar:
{
"requestId": "1403f#19aee6a0fd9",
"success": false,
"warnings": [],
"errors": [
{
"code": "610",
"message": "Requested resource not found"
}
]
}When posting code, you must use the syntax highlighter (“Insert/Edit Code Sample”) for it to be readable. I edited your post this time.