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.

Path Parameters

id*string

A UUID; anything else is 400 invalid_id.

Formatuuid

Header Parameters

X-Request-Id?string

Your id for this request; it becomes the request_id of any error. Without it the server makes one.

Request Body

application/json
  1. body
steps*array<>
Items1 <= items <= 10
curl -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    }  ]}