PATCH
/
campaigns
/
{campaign_id}
curl --request PATCH \
  --url https://api.puretalk.ai/api/campaigns/{campaign_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "My Campaign",
  "start_date": "2021-01-01",
  "end_date": "2021-01-01",
  "ai_assistant_id": "123e4567-e89b-12d3-a456-426614174000",
  "type": "call"
}'
{
  "err": false,
  "msg": "Error message"
}

Authorizations

X-API-KEY
string
header
required

Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.

Path Parameters

campaign_id
string
required

ID of campaign to update

Body

application/json

Response

200
application/json

Campaign updated

The response is of type object.