Update a send-webhook step
PUT /automations/{automationUuid}/automation_steps/{uuid}/send_webhook
/automations/{automationUuid}/automation_steps/{uuid}/send_webhookChanges an existing send-webhook step by replacing its settings with the values you send. The step keeps its place in the flow; position fields in the body are ignored.
When to use: To change the URL, the secret or the extra fields of the webhook.
When not to use: To add a new send-webhook step to a flow, use create_step_send_webhook. Call this operation only on a step whose step_type is step.send.webhook: 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. The webhook created for the step is updated in place; as with creation, every active webhook of the audience that listens to the same event receives each call.
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
application/problem+json
curl -X PUT "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/4b1f6c0e-52a1-4f0e-9a64-1d3c7f2b8e90/send_webhook" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": { "url": "http://example.com", "secret": "string", "payload_items": [ { "key": "string", "value": "string" } ] }, "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": { "url": "http://example.com", "secret": "string", "payload_items": [ { "key": "string", "value": "string" } ] }, "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 } }}