Create new CompanySize record

POST/company-sizes

Create new CompanySize record.

Privileges:

  • bp-settings-lists.manage

Audit event:

  • biz.core.v2.company.size.add

Validation errors:

  • BIZ_CORE:COMPANY_SIZE_COMPANY_SIZE_FIELD_REQUIRED - Company size field of the Company size must be provided.
  • BIZ_CORE:COMPANY_SIZE_COMPANY_SIZE_FIELD_OUT_OF_LIMIT - Company size field of the Company size cannot be longer than 20 characters.
  • BIZ_CORE:COMPANY_SIZE_COMPANY_SIZE_FIELD_NOT_UNIQUE - Company size field of the Company size must be unique.
  • BIZ_CORE:COMPANY_SIZE_FAVORITE_NOT_ALLOWED - Company size 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 required

application/json
companySizestringrequired
max length: 20
favoritestring
Possible values: yes, no

Request example

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

Responses

CompanySize record created

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