Update an unsubscribe step
PUT /automations/{automationUuid}/automation_steps/{uuid}/unsubscribe
/automations/{automationUuid}/automation_steps/{uuid}/unsubscribeUpdates an existing unsubscribe step. The step has no settings, so the request changes nothing.
When to use: Not needed in practice: the unsubscribe step has no settings to change.
When not to use: To add a new unsubscribe step to a flow, use create_step_unsubscribe. Call this operation only on a step whose step_type is step.unsuscribe: the API does not check it, and sending the wrong kind replaces the settings of a step of another type with settings that do not fit it, which can break the step. To move the step, use move_step_position; to change its type, delete it with delete_automation_step and create a new one.
Side effects: Contacts that have not yet passed this step use the new settings.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
UUID of the step, as returned by list_automation_steps.
The updated AutomationStep resource
TypeScript Definitions
Use the request body type in TypeScript.
API Resource for automation steps.
This class defines the API endpoints and serves as the base class for all automation step types. Uses DiscriminatorMap for polymorphic serialization.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90/unsubscribe" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": {}, "parent": "/entity/1", "parent_yes": "/entity/1", "parent_no": "/entity/1" }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "step_type": "string", "automation": "/entity/1", "count_automation_queue_items_completed": 0, "count_automation_queue_items_in_queue": 0, "action": {}, "children": { "next": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "step_type": "string", "automation": "/entity/1", "count_automation_queue_items_completed": 0, "count_automation_queue_items_in_queue": 0, "action": null, "children": null } }}