PATCH
/
api
/
v1
/
campaigns
/
{id}
curl -X PATCH https://api.ravan.ai/api/v1/campaigns/019d5b4c-8d9e-0f1a-2b3c-4d5e6f7a8b9c \
  -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Q2 Outbound Blitz v2", "schedule": {"max_concurrent": 10, "timezone": "Asia/Dubai"}}'
{ "success": true, "message": "Campaign updated successfully", "data": { "id": "019d5b4c-8d9e-0f1a-2b3c-4d5e6f7a8b9c", "name": "Q2 Outbound Blitz v2", "status": "draft" } }
This is a partial update. Only include the fields you want to change.

Authorizations

X-Api-Key
string
required
Your Agni API key.

Path Parameters

id
string
required
Campaign UUID.

Body

name
string
Updated campaign name.
agent_id
string
New agent UUID.
phone_number_id
string
New phone number UUID.
from_phone_number
string
New caller ID (E.164).
schedule
object
Updated scheduling configuration (see Create Campaign for schedule fields).

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
The updated campaign object.
curl -X PATCH https://api.ravan.ai/api/v1/campaigns/019d5b4c-8d9e-0f1a-2b3c-4d5e6f7a8b9c \
  -H "X-Api-Key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Q2 Outbound Blitz v2", "schedule": {"max_concurrent": 10, "timezone": "Asia/Dubai"}}'
{ "success": true, "message": "Campaign updated successfully", "data": { "id": "019d5b4c-8d9e-0f1a-2b3c-4d5e6f7a8b9c", "name": "Q2 Outbound Blitz v2", "status": "draft" } }

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Campaign UUID

Body

application/json
name
string
agent_id
string
phone_number_id
string
from_phone_number
string
schedule
object

Response

Successful response

success
boolean
message
string
data
object