Skip to main content

Delete Attribute data

DELETE 

/attributes/{id}

Delete Attribute data.

Privileges:

  • bp-settings-custom-fields.manage

Audit event:

  • biz.core.v2.attribute.delete

Errors:

  • BIZ_CORE:ATTRIBUTE_NOT_FOUND - Attribute not found.
  • BIZ_CORE:PREDEFINED_ATTRIBUTE_CANNOT_BE_DELETED - Predefined attribute cannot be deleted.
  • BIZ_CORE:ACTIVE_ATTRIBUTE_CANNOT_BE_DELETED - Active attribute cannot be deleted.
  • BIZ_CORE:CUSTOM_ATTRIBUTE_CANNOT_BE_DELETED - Custom attribute cannot be deleted.
  • BIZ_CORE:ATTRIBUTE_IN_USE_CANNOT_BE_DELETED - Attribute in use cannot be deleted.

Request

Responses

Attribute deleted successfully