cURL
curl --request PUT \ --url https://api.kollie.ai/api/v1/campaigns/{campaign_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "draft", "start_date": "2023-11-07T05:31:56Z", "end_date": "2023-11-07T05:31:56Z", "start_time": "<string>", "end_time": "<string>", "phone_numbers": [ "<string>" ], "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "additional_params": {} } '
{ "message": "Data updated correctly", "meta": {}, "data": { "name": "<string>", "end_date": "2023-11-07T05:31:56Z", "start_time": "<string>", "end_time": "<string>", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z", "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "draft", "start_date": "2023-11-07T05:31:56Z", "phone_numbers": [], "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "additional_params": {} } }
Updates a campaign by its id. Can only update paused campaigns. Requires admin or manager role.
draft
paused
running
finished
canceled
Successful Response
Show child attributes