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.

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