Campaigns
Replace campaign steps
Replace a campaign's steps.
Every step in order. A WhatsApp step is a template the campaign's number holds as approved, with each body placeholder mapped; an SMS step is text. Refused while a run is sending or paused.
id*stringA UUID; anything else is 400 invalid_id.
Format
uuidX-Request-Id?stringYour id for this request; it becomes the request_id of any error. Without it the server makes one.
application/json- body
steps*array<>Items
1 <= items <= 10curl -X PUT 'https://v3.ghala.io/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/steps' \ -H 'Content-Type: application/json' \ -d '{ "steps": [ { "message_type": "text" } ]}'{ "data": [ { "position": 0, "name": "string", "delay_days": 0, "delay_hours": 0, "delay_minutes": 0, "message_type": "text", "text_content": "string", "template_name": "string", "template_language": "string", "variable_mapping": { "property1": { "property1": "string", "property2": "string" }, "property2": { "property1": "string", "property2": "string" } }, "total_sent": 0, "total_delivered": 0, "total_read": 0, "total_failed": 0 } ]}