Delete

To delete an existing role you need to execute a DELETE request against the /roles/:idOrName endpoint. Role name is more human readable compared to ids, but it is up to you what you are going to use.

You can find id and name inside the create role response.

This is a destructive operation which cannot be undone. Note also that you are not allowed to delete roles which are currently used inside a live session and also roles which are set as default roles in rooms.

Request

curl --request DELETE \
  --url https://api.digitalsamba.com/api/v1/roles/2d9448b9-d9ee-4102-b31a-f83ab4af2af8 \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY

Response (204 -> No Content)

Response is empty because the role was deleted and there is no content to return.

Last updated