Logo
Platform updates
Campaigns

Update campaign status

Start or stop a campaign in the OtoniStark system

POST

/ user / campaign / update-status

This endpoint allows you to start or stop a campaign in the OtoniStark 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

campaign_id integer

The ID of the updated campaign


status string default:"in-progress"

The new status of the campaign (e.g., “in-progress” for started campaigns, “stopped” for stopped campaigns)


Update campaign status
200
{
  "message": "<String>",
  "success": true,
  "data": {
    "campaign_id": 123,
    "status": "<String>"
  }
}