cURL
curl --request POST \ --url https://api.embedreach.com/api/automations \ --header 'Content-Type: application/json' \ --data ' { "duplicate": true, "source_id": "<string>", "name": "<string>", "description": "<string>" } '
{ "success": true, "message": "<string>", "data": { "id": "<string>", "name": "<string>", "description": "<string>", "triggerMetadata": { "triggerType": "one_time", "scheduledAt": "<string>", "timezone": "<string>" }, "triggerType": "one_time", "actionData": [ { "actionType": "send_communication", "actionMetadata": { "actionType": "send_communication", "communicationGroupId": "<string>", "currentActionId": "<string>", "nextActionId": "<string>", "templateActionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "customBlockText": "<string>", "reputationTemplateType": "feedback-request" } } ], "businessId": "<string>", "status": "draft" } }
Create a new tenant automation in the draft state
If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.
true
false
The ID of the automation to duplicate
The name of the automation
A description for the automation
Status 200 response
Show child attributes