Change campaign Status - toggle active/stopped

PATCH/services/{serviceUuid}/campaigns/{campaignUuid}

Stopping an existing campaign by its UUID and setting new status Example:

bash
  curl -X 'PATCH' \
    'https://api-cpaas.sms.es/news/v1/services/5491ccd2-c1dc-11ee-8cde-63aaf4399859/campaigns/6491ccd2-c1dc-11ee-8cde-63aaf4399859' \
    -H 'accept: application/json' \
    -H 'Content-Type: application/json' \
    -d '{
    "status": "stopped"
  }'
Base URL
https://api-cpaas.sms.es/news/v1
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

serviceUuidstringrequired

service (BM Account) UUID

campaignUuidstringrequired

campaign UUID

Body required

Change campaign Status, stop/resume

application/json
statusstringrequired
Possible values: active, stopped

Request example

cURL · cURL
curl -L -X PATCH "https://api-cpaas.sms.es/news/v1/services/{serviceUuid}/campaigns/{campaignUuid}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "status": "active"
}'

Responses

Campaign status changes