POST
/
user
/
campaigns
/
update-status
Update campaign status
curl --request POST \
  --url https://app.autocalls.ai/api/user/campaigns/update-status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "campaign_id": 123,
  "action": "<string>"
}'
{
  "message": "<string>",
  "success": true,
  "data": {
    "campaign_id": 123,
    "status": "<string>"
  }
}
This endpoint allows you to start or stop a campaign in the Autocalls system.

Request body

campaign_id
integer
required
The ID of the campaign to update
action
string
required
The action to perform on the campaign. Must be either “start” or “stop”

Response

message
string
default:"Campaign started successfully."
The message of the response
success
boolean
default:"true"
Whether the operation was successful
data
object
The data of the response