How to Configure Default Room Settings with the Digital Samba API

5 min read
August 31, 2023

Default room settings are the template every Digital Samba room starts from. Instead of configuring the toolbar, colours, language and components room by room, you set them once at team level with a single PATCH request to the developer API, and every room you create inherits them. This guide explains how room inheritance works, how to view and change your default room settings through the API, and how to override them for individual rooms.

Table of Contents 

  1. Understanding room settings inheritance in Digital Samba
  2. Viewing your current default room settings
  3. How to configure your room defaults using the developer API
  4. How to override defaults for a specific room
  5. Frequently asked questions

Understanding room settings inheritance in Digital Samba

Digital Samba Embedded uses a simple hierarchy: settings configured at team level (the default room settings) are automatically inherited by your rooms, unless you configure a room specifically. If you skip setting your defaults altogether, new rooms inherit the factory settings.

The inheritance rule works like this:

  • New rooms inherit the default room settings when they are created.
  • Existing rooms inherit changes to the default room settings too, but any setting you have customised on a room is never overridden.

For instance, if you create a room and don't touch its primary colour, and a team admin later changes the primary colour to green in the default settings, your room turns green as well. But if you had already set that room's primary colour to red, it stays red no matter what the defaults say.

This saves time and keeps the experience consistent: brand colours, language and enabled components live in one place, and individual rooms only carry the differences. You can manage the same settings visually too – here's how to configure your default room settings in the Digital Samba dashboard.

Before making any API calls, grab your credentials: requests authenticate with your team ID and developer key, which you can find in the dashboard's 'Team' option, as shown below.

dashboards Team option - Digital Samba-1

Important: Never leak your developer key into the client's browser. Execute these requests only from your backend (server-side). The --user flag in the examples below handles HTTP Basic Authentication for you; if you build the Authorization header yourself, base64-encode TEAM_ID:DEVELOPER_KEY – every major language has a built-in function for this.

Viewing your current default room settings

To see what your rooms currently inherit, execute a GET request against the root /api/v1 endpoint:

curl --request GET \
  --url https://api.digitalsamba.com/api/v1 \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY

The response lists every default property of your team – an abbreviated example:

{
  "id": "c4fa4435-1381-4fd4-8bef-38a25da7eee1",
  "domain": "myTeamNameHere",
  "topbar_enabled": true,
  "toolbar_enabled": true,
  "toolbar_position": "bottom",
  "toolbar_color": "#000000",
  "primary_color": "#3771E0",
  "background_color": "#000000",
  "palette_mode": "light",
  "language": "en",
  "audio_on_join_enabled": true,
  "video_on_join_enabled": true,
  "screenshare_enabled": true,
  "participants_list_enabled": true,
  "chat_enabled": true,
  "e2ee_enabled": false,
  "join_screen_enabled": true,
  "logo_enabled": false,
  "recordings_enabled": true,
  "virtual_backgrounds_enabled": true,
  "raise_hand_enabled": true,
  ....................
}

This is also a handy reference for the exact field names you can set – the default room settings documentation has the full response.

How to configure your room defaults using the developer API

To edit your default room settings, execute a PATCH request against the same root /api/v1 endpoint. You can update as many fields as you wish in one call – this example makes the toolbar blue and switches chat off for all inheriting rooms:

curl --request PATCH \
  --header "Content-Type: application/json" \
  --url https://api.digitalsamba.com/api/v1 \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
  --data '{"toolbar_color": "#0000ff", "chat_enabled": false}'

The response returns your updated default settings (200 OK).

A more realistic scenario: you want a uniform brand identity across all your video conferences. One PATCH request sets a right-positioned green toolbar, green as the primary colour, a white background, your logo on display and an English user interface:

curl --request PATCH \
  --header "Content-Type: application/json" \
  --url https://api.digitalsamba.com/api/v1 \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
  --data '{
    "topbar_enabled": true,
    "toolbar_position": "right",
    "toolbar_color": "#2E7D32",
    "primary_color": "#2E7D32",
    "background_color": "#FFFFFF",
    "logo_enabled": true,
    "language": "en"
  }'

You can also set e2ee_enabled to true here to make end-to-end encryption the default for new rooms. Do this deliberately rather than as a blanket setting: with end-to-end encryption active, features that need server-side media access – polls, Q&A, captions, transcription and server-side recording – are unavailable in the room.

With the Digital Samba video conferencing API, you can update as many fields for your default rooms as you wish. See our documentation for a detailed list of the fields you can configure.

How to override defaults for a specific room

Defaults are the template; individual rooms carry the exceptions. You have two options for setting room-specific values:

At creation – make a POST request to the /rooms endpoint and include the settings alongside the one required field, privacy (public or private).

After creation – execute a PATCH request to the /rooms/:id endpoint with the room's ID from the create response.

For example, if you're holding a lecture or training course, you might turn off screen sharing for this one room while keeping chat on and the UI in English. Even if screen sharing is enabled in your default room settings, it will be off for this specific room – and it will stay off, because customised room settings are never overridden by the defaults:

curl --request PATCH \
  --header "Content-Type: application/json" \
  --url https://api.digitalsamba.com/api/v1/rooms/c39d7c40-7ff7-4faa-b06f-698a639a9523 \
  --user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY \
  --data '{
    "screenshare_enabled": false,
    "chat_enabled": true,
    "language": "en"
  }'

If your rooms host moderated meetings or webinars, you'll also want to set the roles and default_role fields when creating them – see our guide on how to use custom roles in the Digital Samba developer API. And for a deeper look at per-room configuration, including the full list of room fields, read our guide on how to configure your Digital Samba rooms using the developer API and SDK.

Frequently asked questions

What are default room settings in Digital Samba?

Default room settings are a team-level template for your rooms, covering branding, language, components and more. Every room you create inherits them automatically, so you only configure the exceptions per room. You can edit them through the developer API or in the dashboard.

Do changes to the default settings affect existing rooms?

Yes. Existing rooms inherit changes to the default room settings too, but only for settings you haven't customised on the room itself. Any value you've set directly on a room is never overridden by the defaults.

Which settings are not inherited from the defaults?

A room's privacy is set per room – it's the one required field when you create a room – and the maximum number of participants is also configured individually. Everything else, from colours to components, follows the default room settings unless you override it.

Which endpoint updates the default room settings?

The root endpoint of the REST API: send a PATCH request to https://api.digitalsamba.com/api/v1 with the fields you want to change. A GET request to the same endpoint returns your current defaults.

Can I reset my default room settings?

Yes. The dashboard's 'Default room settings' form has a 'Reset to factory settings' button that returns your defaults to their original values. Note that edits or deletions you've made to the preset roles are a separate matter and won't be undone by the reset.

Customise video calls in your application with Digital Samba Embedded

Room inheritance does the heavy lifting: set your default room settings once through the Digital Samba Embedded developer API, and every room you spin up arrives branded, configured and consistent – while any room can still be tailored for the session it hosts.

Get started today with a free account.