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

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

You can update as many fields as you wish - the below example makes the toolbar color blue and also removes chat functionality from the room.


curl --request PATCH \
  --header "Content-Type: application/json" \
  --url https://api.digitalsamba.com/api/v1/roles/2d9448b9-d9ee-4102-b31a-f83ab4af2af8 \
  --data '{"display_name": "CustomEdited", "permissions": {"general_chat": true}}'

Response (200 OK)

    "id": "2d9448b9-d9ee-4102-b31a-f83ab4af2af8",
    "name": "custom",
    "display_name": "CustomEdited",
    "description": null,
    "default": false,
    "created_at": "2023-03-24T13:32:05Z",
    "updated_at": "2023-03-27T15:38:14Z",
    "permissions": {
        "ask_remote_unmute": false,
        "broadcast": false,
        "end_session": false,
        "general_chat": true,
        "manage_broadcast": false,
        "manage_roles": false,
        "manage_screenshare": false,
        "raise_hand": true,
        "recording": false,
        "remote_muting": [
        "remove_participant": false,
        "screenshare": false,
        "start_session": true

Last updated