Patches a campaign group

PATCH/campaign-groups/{id}

Patches a campaign group.

Privileges: campaign-detector.manage

Auditlog Event: campaign.detector.campaign.group.patch

Errors:

  • CAMPAIGN_DETECTOR_API_CAMPAIGN_GROUP_NOT_FOUND - campaign group not found
  • BAD_REQUEST_BODY_FORMAT - Unable to decode request body
  • INT_APP_ERROR - unexpected internal error / missing instance context

Validation Errors:

  • CAMPAIGN_DETECTOR_API_CAMPAIGN_GROUP_STATUS_NOT_SUPPORTED - The given status is not supported
Base URL
https://api-cpaas.sms.es/bulk/campaign-detector/v1
Authentication

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

Request

Path parameters

idintegerrequired

Campaign Group ID

Body required

application/json
statusstring

Status cannot be changed from active to inactive if the campaign group is in use.

Possible values: active, inactive

Request example

cURL · cURL
curl -L -X PATCH "https://api-cpaas.sms.es/bulk/campaign-detector/v1/campaign-groups/{id}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "status": "active"
}'

Responses

Campaign group patched

application/json
canBeDeletedstring
Possible values: yes, no
canBeInactivestring

This value is relevant only if the current status of the campaign group is active

Possible values: yes, no
idinteger
instanceIdinteger
namestring
statusstring
Possible values: active, inactive
statusDtstring (date-time)
Example response
{
  "canBeDeleted": "yes",
  "canBeInactive": "yes",
  "id": 0,
  "instanceId": 0,
  "name": "string",
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z"
}