Closed SabrinaEspino closed 1 week ago
the info on stackoverflow worked, it seems:
POST /automation/v1/automations
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json
{
"name": "SSJS_API_Test",
"key": "SSJS_API_Test_Key",
"steps": [
{
"annotation":"",
"stepNumber":0,
"activities": [
{
"name":"10 Minutes",
"objectTypeId":467,
"displayOrder":0,
"activityObjectId":"00000000-0000-0000-0000-000000000000",
"serializedObject":"{\"duration\":10,\"durationUnits\":\"Minutes\"}"
}
]
}
],
"startSource": {
"typeId":1
},
"categoryId":544
}
Closed by #1829.
https://help.salesforce.com/articleView?id=mc_as_automation_studio_activities_reference.htm&type=5
possible solution: https://salesforce.stackexchange.com/a/386492/28940