Delete RBAC Role
DELETE https://infrahub-api.nexgencloud.com/v1/auth/roles/{id}
Deletes a specified Role-Based Access Control (RBAC) role. Include the ID of the role to be deleted in the path.
Path parameters
id integer
Required
The ID of the RBAC role to be deleted.
Attributes
status boolean
Indicates the status of the request to delete the specified RBAC role. A value of true
indicates successful deletion, while false
indicates an error.
message string
A message describing the status of the request to delete specified RBAC role.
Example request
curl -X DELETE "https://infrahub-api.nexgencloud.com/v1/auth/roles/{id}" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "RBAC Role deleted successfully"
}
Returns
The response will return the status of the request to delete the specified RBAC role. A value of true
indicates successful deletion, while false
indicates an error.