Update PartnerAttribute data

PUT/partner-attributes/{id}

Update PartnerAttribute data.

Privileges:

  • bp-settings-custom-fields.manage

Audit event:

  • biz.core.v2.partner.attribute.update

Errors:

  • BIZ_CORE:PARTNER_ATTRIBUTE_NOT_FOUND - Partner attribute not found.

Validation errors:

  • BIZ_CORE:PARTNER_ATTRIBUTE_CUSTOM_ATTR_NAME_OUT_OF_LIMIT - Custom attr name of the Partner attribute cannot be longer than 50 characters.
  • BIZ_CORE:PARTNER_ATTRIBUTE_ATTRIBUTE_VALUE_IS_LONGER_THAN_255_BUT_JSON_IS_NOT_VALID - Attribute value of the Partner attribute is longer than 255 but JSON is not valid.
  • BIZ_CORE:PARTNER_ATTRIBUTE_JSON_IS_NOT_VALID - Json value of the Partner attribute is not valid.
  • BIZ_CORE:PARTNER_ATTRIBUTE_JSON_VALUE_AND_ATTRIBUTE_VALUE_CANNOT_BE_EMPTY - Json value and attribute value of the Partner attribute can not be empty.
  • BIZ_CORE:PARTNER_ATTRIBUTE_ATTRIBUTE_SECTION_NOT_SUPPORTED - Attribute section of the Partner attribute is not supported.
  • BIZ_CORE:PARTNER_ATTRIBUTE_ATTRIBUTE_SECTION_NOT_ACTIVE - Attribute section of the Partner attribute is not active.
  • BIZ_CORE:PARTNER_ATTRIBUTE_BIZ_PARTNER_NOT_FOUND - Biz partner of the Partner attribute is not found.
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

application/json
attributeIdinteger
attributeValuestring
max length: 255
bizPartnerIdinteger
customAttrNamestring
max length: 50
jsonValueobject
Show child attributes
valuestring (JSON)
sectionIdinteger
sectionRowIdinteger

Request example

cURL · cURL
curl -L -X PUT "https://api-cpaas.sms.es/biz-core/v2/partner-attributes/{id}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "attributeId": 0,
  "attributeValue": "string",
  "bizPartnerId": 0,
  "customAttrName": "string",
  "jsonValue": {
    "value": "string"
  },
  "sectionId": 0,
  "sectionRowId": 0
}'

Responses

PartnerAttribute updated successfully

application/json
attributeCodeNamestring
attributeIdinteger
attributeNamestring
attributeTypeCodeNamestring
attributeTypeNamestring
attributeValuestring
bizPartnerIdinteger
canBeChangedboolean
customAttrNamestring
dbCodeNamestring
idinteger
jsonValueobject
Show child attributes
valuestring (JSON)
sectionCodeNamestring
sectionIdinteger
sectionNamestring
sectionRowIdinteger
statusstring
Possible values: active, deleted
statusDtstring (date-time)
valueTypestring
Possible values: simple, json
Example response
{
  "attributeCodeName": "string",
  "attributeId": 0,
  "attributeName": "string",
  "attributeTypeCodeName": "string",
  "attributeTypeName": "string",
  "attributeValue": "string",
  "bizPartnerId": 0,
  "canBeChanged": true,
  "customAttrName": "string",
  "dbCodeName": "string",
  "id": 0,
  "jsonValue": {
    "value": "string"
  },
  "sectionCodeName": "string",
  "sectionId": 0,
  "sectionName": "string",
  "sectionRowId": 0,
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z",
  "valueType": "simple"
}