Endpoint:
PUT /external/campaigns/:campaignId/status
Required Header:
Authorization: Bearer YOUR_API_TOKEN
Path Parameter:
campaignId(Number) – The ID of the campaign to update
Request Body Example:
{
"campaignId": 38,
"activate": true
}Accepted values:
"activate"(Boolean) – true , false
Example Response:
{
"campaignId": 38,
"status": "inactive"
}Validation Rules:
Campaign must be in a valid state for activation (e.g., not capped or expired)
Only true and false are valid values
Possible Errors:
400 –
campaign capped: Cannot activate a campaign with a reached cap400 –
invalid status: Must be eitherActiveorInactive403 –
unauthorized: Missing or insufficient permissions404 –
not found: Campaign ID does not exist