curl --request PATCH \
--url https://app.closerx.ai/api/v2/camp-quickcamp/update/{campaign_id}/ \
--header 'Company-Name: <company-name>' \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"name": "string",
"new_agent": "number",
"calling_number": "string",
"total_bugget": "number",
"priority": "number",
"status": "string"
}
'{
"success": true,
"message": "Campaign updated successfully",
"data": {
"campaign": {
"id": "string",
"name": "string",
"direction": "string",
"agent": "null | string",
"new_agent": "number",
"contact_list": "null | string",
"knowledge_base": "null | string",
"calling_number": "string",
"start_date": "null | string",
"start_time": "null | string",
"end_time": "null | string",
"total_bugget": "number",
"bugget_left": "string",
"saturday": "boolean",
"sunday": "boolean",
"status": "string",
"priority": "number",
"created_at": "string",
"updated_at": "string"
}
}
}This endpoint allows editing campaign details like name, agent, budget, calling number, as well as performing actions like pause, resume, or complete the campaign.
curl --request PATCH \
--url https://app.closerx.ai/api/v2/camp-quickcamp/update/{campaign_id}/ \
--header 'Company-Name: <company-name>' \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--data '
{
"name": "string",
"new_agent": "number",
"calling_number": "string",
"total_bugget": "number",
"priority": "number",
"status": "string"
}
'{
"success": true,
"message": "Campaign updated successfully",
"data": {
"campaign": {
"id": "string",
"name": "string",
"direction": "string",
"agent": "null | string",
"new_agent": "number",
"contact_list": "null | string",
"knowledge_base": "null | string",
"calling_number": "string",
"start_date": "null | string",
"start_time": "null | string",
"end_time": "null | string",
"total_bugget": "number",
"bugget_left": "string",
"saturday": "boolean",
"sunday": "boolean",
"status": "string",
"priority": "number",
"created_at": "string",
"updated_at": "string"
}
}
}The name of the schema to be used for the request
The ID of the campaign to be updated
Indicates whether the update was successful
true
Descriptive message for the API response
"Campaign updated successfully"
Contains updated campaign information
Show child attributes
Show child attributes
Unique campaign ID
"campc005bf8a"
Name of the campaign
"Testing(amanEditCampaign)"
Current campaign status
"active"
Direction of the campaign (Inbound/Outbound)
"Inbound"
Agent assigned to the campaign
null
New agent ID assigned to the campaign
527
Associated contact list
null
Associated knowledge base (if any)
null
Calling number used in campaign
"+911149816890"
Start date of the campaign
null
Start time of the campaign
null
End time of the campaign
null
Total budget assigned
158
Remaining budget (in string format)
"158.0000"
Whether the campaign runs on Saturdays
false
Whether the campaign runs on Sundays
false
Campaign priority
1
Campaign creation timestamp
"2025-08-23T10:44:41.275526Z"
Last update timestamp
"2025-08-23T18:16:15.772412Z"
Campaign updated successfully
Whether the update was successful
true
Descriptive message about the result
"Campaign updated successfully"
Show child attributes
Show child attributes
"campc005bf8a"
"TesTing(aman)"
"Inbound"
null
527
null
null
"+15076371471"
null
null
null
58
"58.0000"
false
false
"paused"
1
"2025-08-23T10:44:41.275526Z"
"2025-08-23T17:47:12.678754Z"