Delete a role
DELETE
Deletes a role. Users and tokens that list it keep the role_id but no longer get its permissions.
Secret and trusted tokens may call this with the roles delete permission.
header
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
role_id*stringThe role's role_id.
The role is deleted. No body.
curl -X DELETE 'https://api.comecero.com/api/v1/roles/support'Example Response
Empty
Get a role GET
Gets one role. A role of the other mode is not found (`404`). Secret and trusted tokens may call this with the `roles` read permission.
Replace a role PUT
Replaces a role with the one you send. This is `PUT`, not `POST`: send the whole role, including its `role_id` (`400` without it) and at least one permission. Fields you leave out are cleared. Secret and trusted tokens may call this with the `roles` update permission.