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.
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.

Request example

cURL · cURL
curl -L -X DELETE "https://api-cpaas.sms.es/biz-core/v2/attributes/{id}" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>"

Responses

Attribute deleted successfully