Update CompanySize

PUT/company-sizes/{id}

Update CompanySize data by id.

Privileges:

  • bp-settings-lists.manage

Audit event:

  • biz.core.v2.company.size.update

Errors:

  • BIZ_CORE:COMPANY_SIZE_NOTFOUND - Company size with given id not found.

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_STATUS_REQUIRED - Status of the Company size must be provided.
  • BIZ_CORE:COMPANY_SIZE_STATUS_NOT_SUPPORTED - Status of the Company size is not supported.
  • 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

Path parameters

idintegerrequired

id.

Body required

application/json
companySizestring
max length: 20
favoritestring
Possible values: yes, no
statusstring
Possible values: active, inactive

Request example

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

Responses

CompanySize updated

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"
}