Appearance
Delete Role
Permanently delete a role from the target path. This is a hard delete and cannot be undone. The authenticated user must have ADMIN permissions.
Parameters
| name * are required parameters | data type | description |
|---|---|---|
roleId* | string | The unique identifier of the role to delete |
Return Value
json
{
"statusCode": 201,
"data": null,
"message": "Successfully deleted the role"
}Error Codes
400 Bad Request: Returned when parameters are invalid.401 Unauthorized: Returned when permissions are insufficient.
Examples
bash
curl -X DELETE "https://app.wombat.software/api/{targetPath}/role/:roleId" \
-H "Content-Type: application/json" \
-H "Authentication: Bearer ..."ENDPOINTS
delete
/api/{targetPath}/role/:roleId