Create new Biz department

POST/biz-departments

Create new Biz department.

Privileges:

  • bp-settings-lists.manage

Audit event:

  • biz.core.v2.biz.departments.add

Validation errors:

  • BIZ_CORE:BIZ_DEPARTMENT_NAME_REQUIRED - Name of the Biz department must be provided.
  • BIZ_CORE:BIZ_DEPARTMENT_NAME_OUT_OF_LIMIT - Name of the Biz department cannot be longer than 50 characters.
  • BIZ_CORE:BIZ_DEPARTMENT_NAME_NOT_UNIQUE - Name of the Biz department must be unique.
  • BIZ_CORE:BIZ_DEPARTMENT_FAVORITE_NOT_ALLOWED - Biz department favorite not allowed.
Base URL
https://api-cpaas.sms.es/biz-core/v2
Authentication

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

Request

Body

application/json
favoritestring
Possible values: yes, no
namestringrequired
max length: 50

Request example

cURL · cURL
curl -L -X POST "https://api-cpaas.sms.es/biz-core/v2/biz-departments" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "favorite": "yes",
  "name": "string"
}'

Responses

Biz department created

application/json
canBeDeletedboolean
favoritestring
Possible values: yes, no
idinteger
namestring
statusstring
Possible values: active, inactive
statusDtstring (date-time)
Example response
{
  "canBeDeleted": true,
  "favorite": "yes",
  "id": 0,
  "name": "string",
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z"
}