cURL
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" }
Update a campaign based on the ID supplied
Authorization header containing API key. You can find your API key in the dashboard under 'API Keys'.
ID of campaign to update
Campaign updated
The response is of type object.
object
Was this page helpful?