Skip to main content

Update Attribute data

PUT 

/attributes/{id}

Update Attribute data.

Privileges:

  • bp-settings-custom-fields.manage

Audit event:

  • biz.core.v2.attribute.update

Errors:

  • BIZ_CORE:ATTRIBUTE_NOT_FOUND - Attribute not found.

Validation errors:

  • BIZ_CORE:ATTRIBUTE_CODE_NAME_CANNOT_BE_CHANGED - Code name of the Attribute in use cannot be changed.
  • BIZ_CORE:ATTRIBUTE_CODE_NAME_REQUIRED - Code name of the Attribute must be provided.
  • BIZ_CORE:ATTRIBUTE_CODE_NAME_NOT_VALID - Code name of the Attribute can only contain alphanumeric characters.
  • BIZ_CORE:ATTRIBUTE_CODE_NAME_OUT_OF_LIMIT - Code name of the Attribute cannot be longer than 30 characters.
  • BIZ_CORE:ATTRIBUTE_CODE_NAME_NOT_UNIQUE - Code name of the Attribute must be unique.
  • BIZ_CORE:ATTRIBUTE_NAME_REQUIRED - Name of the Attribute must be provided.
  • BIZ_CORE:ATTRIBUTE_NAME_OUT_OF_LIMIT - Name of the Attribute cannot be longer than 50 characters.
  • BIZ_CORE:ATTRIBUTE_NAME_RESERVED - Name of the Attribute is reserved.
  • BIZ_CORE:ATTRIBUTE_NAME_NOT_UNIQUE - Name of the Attribute must be unique.
  • BIZ_CORE:ATTRIBUTE_TYPE_CANNOT_BE_CHANGED - Attribute type of the Attribute in use cannot be changed.
  • BIZ_CORE:ATTRIBUTE_TYPE_NOT_SUPPORTED - Attribute type of the Attribute is not supported.
  • BIZ_CORE:ATTRIBUTE_TYPE_NOT_ACTIVE - Attribute type of the Attribute is not active.
  • BIZ_CORE:ATTRIBUTE_STATUS_REQUIRED - Status of the Attribute must be provided.
  • BIZ_CORE:ATTRIBUTE_STATUS_NOT_SUPPORTED - Status of the Attribute is not supported.

Request

Responses

Attribute updated successfully