Get Segmentation Set by UUID

GET/services/{serviceUuid}/cds/segmentation_sets/{segmentationSetId}

Get Segmentation Set by UUID

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

segmentationSetIdstringrequired

Segmentation Set ID to get

Request example

cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/news/v1/services/{serviceUuid}/cds/segmentation_sets/{segmentationSetId}" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Segmentation Set data

application/json
uuidstring
namestringrequired
json_datastringrequired

Segmentation set groups. On the wire this is a JSON-serialized string, whose decoded form is an array of SegmentationQueryGroup objects (each an operator plus an array of SegmentationRule). See x-content-schema for the full definition.

Example: [{"rules":[{"field":"gender","operator":"AND","value":"male","condition":"eq"}],"operator":"AND"}]
Example response
{
  "uuid": "string",
  "name": "string",
  "json_data": "[{\"rules\":[{\"field\":\"gender\",\"operator\":\"AND\",\"value\":\"male\",\"condition\":\"eq\"}],\"operator\":\"AND\"}]"
}