Delete
/api/v1/abac/attributes/:_id
- Deletes an ABAC attribute definition by ID.
- Removes the attribute definition identified by
_id. The delete fails if the attribute is currently in use, for example assigned to any room. - Requires the
abac-managementandmanage-abac-admin-room-attributespermissions.
Changelog
| Version | Description |
|---|---|
| 8.0.0 | Added |
| 8.5.0 | Added the manage-abac-admin-room-attributes granular permission requirement. |
Header parameters
X-Auth-Token
stringRequired
The authToken of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired
The userId of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Responses
200
OK
Success
{
"success": true
}object
success
boolean
400
Bad Request
Attribute not found
{
"success": false,
"error": "error-attribute-not-found"
}Attribute in use
{
"success": false,
"error": "error-attribute-in-use"
}object
success
boolean
error
string
401
Unauthorized
Unauthorized login attempt
{
"success": false,
"error": "error-unauthorized"
}object
success
boolean
error
string
403
Forbidden
Missing required ABAC permissions
{
"success": false,
"error": "error-not-authorized"
}object
success
boolean
error
string