Campaigns

Update campaign

Change a campaign.

Fields left out stay as they were. 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
name?string
description?string
sender_id?string
body?string
all_contacts?boolean
curl -X PATCH 'https://v3.ghala.io/v1/campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "description": "string",  "sender_id": "string",  "body": "string",  "status": "draft",  "channel": "sms",  "audiences": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "description": "string",      "contact_count": 0,      "created_at": "2019-08-24T14:15:22Z"    }  ],  "all_contacts": true,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}