Skip to content
dimmiDocs

Workspace and team

Change workspace settings

PATCH/api/v1/workspace

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Body

application/json
customer_facing_namestring

The name customers see instead of the workspace's name. null removes it.

Maximum length: 80

link_safetyobject
Show child attributes
allow_domainsstring[] | null

Up to 500 domains whose links skip the warning; each also covers every name under it, such as ["example.com"]. The list sent replaces the old one.

Maximum items: 500

block_domainsstring[] | null

Up to 500 domains whose links cannot be clicked; each also covers every name under it, such as ["bad.example"]. The list sent replaces the old one.

Maximum items: 500

enabledboolean

true turns link warnings on, false turns them off. They start on.

strip_inbound_email_linksboolean

true shows the links in incoming email as plain text until a teammate reveals them; false leaves them as links.

localestring

The fallback language for members and customers, such as en or de.

namestring

The name of the workspace, at most 80 characters.

Maximum length: 80

require_two_factorboolean

Cannot be changed through a token: the person must switch it in the app, after confirming their password.

retentionobject
Show child attributes
closed_conversation_daysinteger

Days closed conversations are kept, from 30 to 3650, such as 365. null keeps them for ever.

Format: int64

export_daysinteger

Days a data export is kept, from 1 to 30, such as 7.

Format: int64

raw_email_daysinteger

Days raw email is kept, from 0 to 365, such as 30. 0 removes it at once.

Format: int64

spam_daysinteger

Days spam is kept, from 7 to 365, such as 30.

Format: int64

trash_daysinteger

Days trash is kept, from 7 to 365, such as 30.

Format: int64

seen_receipt_shows_nameboolean

Whether the customer's messenger names the teammate who read their message. Off by default: the customer only learns that the team saw it. Example: true.

seen_receiptsboolean

Whether the customer's messenger is told when the team read their message. On unless turned off. Example: false.

show_viewers_on_listboolean

Whether the inbox list shows which teammates are viewing each conversation. On unless turned off. Example: false.

slugstring

The workspace's address: 3 to 40 lowercase letters, digits and dashes.

Minimum length: 3 · Maximum length: 40

team_mentions_enabledboolean

Whether an internal note may mention a whole team. On unless turned off. Example: false.

test_modeboolean

Fixed when the workspace is created; sending a different value is refused.

timezonestring

An IANA time zone, such as Europe/Berlin.

undo_send_secondsinteger

How long a reply can be taken back after sending: 0, 5, 10, 20 or 30.

Available options:05102030

Format: int64

Response 200

OK
dataobjectrequired
Show child attributes
customer_facing_namestring | nullrequired

The name customers see for the workspace. Null when they see the workspace's own name.

deleted_atstring | nullrequired

When the workspace was moved to the trash. Null while it is not deleted.

Format: date-time

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

link_safetyobjectrequired
Show child attributes
allow_domainsstring[] | nullrequired

Domains whose links skip the warning; each covers the domain and every name under it. Empty when none.

block_domainsstring[] | nullrequired

Domains whose links cannot be clicked; each covers the domain and every name under it. Empty when none.

enabledbooleanrequired

True when links in messages are checked and warned about before opening.

strip_inbound_email_linksbooleanrequired

True when links in received email show as plain text until a teammate reveals them.

localestringrequired

The workspace's language, such as en.

logo_urlstring | nullrequired

Web address of the workspace's logo on this server. Null when it has none.

namestringrequired

The workspace's name, 1 to 80 characters.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

onboardingobjectrequired
Show child attributes
completed_atstring | nullrequired

When the workspace finished setup. Null while setup is still under way.

Format: date-time

stepstringrequired

The setup step the workspace is on: workspace, logo, channels, tags, team, knowledge, test_conversations or done.

purge_afterstring | nullrequired

When a deleted workspace is removed for good unless restored. Null while it is not deleted.

Format: date-time

require_two_factorbooleanrequired

True when every member must have a second sign-in factor to work in the workspace.

retentionobjectrequired
Show child attributes
changed_atstring

When the retention periods were last changed; left out if they never were.

Format: date-time

closed_conversation_daysinteger | nullrequired

Days a closed conversation is kept; null when closed conversations are kept for ever.

Format: int64

export_daysintegerrequired

Days a data export is kept; 7 unless the workspace chose otherwise.

Format: int64

raw_email_daysintegerrequired

Days raw email is kept after it is read; 30 unless the workspace chose otherwise.

Format: int64

spam_daysintegerrequired

Days spam is kept; 30 unless the workspace chose otherwise.

Format: int64

trash_daysintegerrequired

Days the trash is kept; 30 unless the workspace chose otherwise.

Format: int64

seen_receipt_shows_namebooleanrequired

True when the customer's messenger names the teammate who read their message.

seen_receiptsbooleanrequired

True when the customer's messenger is told that the team read their message.

show_viewers_on_listbooleanrequired

True when inbox lists show who is viewing each conversation.

slugstringrequired

The workspace's short name used in its web addresses.

team_mentions_enabledbooleanrequired

True when a note may mention a whole team.

test_modebooleanrequired

True when the workspace is a test-mode workspace. It is fixed and cannot be changed.

timezonestringrequired

The workspace's time zone, as an IANA name such as UTC or Europe/Paris.

undo_send_secondsintegerrequired

How many seconds a reply waits before it leaves, during which its writer can undo it. 5 unless the workspace changed it.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.