Create new Interest

POST/services/{serviceUuid}/cds/interests

Create new Interest

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

Body required

Interest to add

application/json
parent_idinteger
namestringrequired
descriptionstring
order_numintegerrequired

Request example

cURL · cURL
curl -L -X POST "https://api-cpaas.sms.es/news/v1/services/{serviceUuid}/cds/interests" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "parent_id": 0,
  "name": "string",
  "description": "string",
  "order_num": 0
}'

Responses

new List response

application/json
uuidstring
parent_idinteger
namestringrequired
statusstring
created_dtstring
updated_dtstring
levelinteger
descriptionstring
order_numintegerrequired
interestsobject
Show child attributes
dataobject[]
Example response
{
  "uuid": "string",
  "parent_id": 0,
  "name": "string",
  "status": "string",
  "created_dt": "string",
  "updated_dt": "string",
  "level": 0,
  "description": "string",
  "order_num": 0,
  "interests": {
    "data": []
  }
}