Manual
CLI
API
Log in Get started free

Update the organisation

Changes the name or settings of the organisation. Send only what changes; other settings stay as they are.

Changes the name or settings of the organisation. Send only what changes; other settings stay as they are.

HTTP
PATCH /org

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Organisation owner or admin.

Request body #

JSON.

FieldTypeRequiredDescription
namestringnoA new name. At most 80 characters.
settings.localization.sourceLanguagestringnoAt most 80 characters.
settings.localization.timezonestringnoAt most 80 characters.
settings.localization.messageFormatstringnoAt most 80 characters.
settings.localization.machineTranslationstringnoAt most 80 characters.
settings.profile.descriptionstringnoAt most 400 characters.
settings.profile.industrystringnoAt most 60 characters.
settings.profile.sizestringnoAt most 20 characters.
settings.security.sessionTimeoutstringno1 hour, 4 hours, 8 hours, 24 hours, 7 days or Never. Sessions end after this long without use.
settings.security.require2fabooleannoMembers must use two-factor authentication. You need it on your own account to turn this on, otherwise 422 with fields.require2fa set to mfa_not_enabled.
settings.security.passwordMinLengthintegernoThe shortest password members may set, 8 to 64. Default 8.
settings.security.passwordRequireMixbooleannoPasswords need an upper case letter, a lower case letter and a digit.
settings.security.apiKeyMaxDaysinteger or nullnoNew API keys must expire within this many days, 1 to 3650. null means no limit. Existing keys are not changed.
settings.security.ipAllowlistlist of stringnoAddresses (203.0.113.7) and ranges (203.0.113.0/24) requests may come from, at most 50. An empty list allows any address. Saving a list that leaves out your own address gives 422 with fields.ipAllowlist set to own_ip_not_allowed.
settings.security.auditRetentionDaysinteger or nullnoDelete audit log entries older than this many days, 30 to 3650. null keeps them for as long as the organisation exists.
settings.security.dataRegionstring or nullnoWhere the organisation wants its data stored: one of us, ca, br, eu, uk, ch, ae, za, in, sg, jp, kr, id or au. null means no preference. The choice is recorded, and the data is moved there as soon as that region is available. A change records org.data_region_changed in the audit log.
settings.security.restrictDomainsbooleannoOnly allow invitations to the listed domains.
settings.security.domainslist of stringnoDomains such as @example.com.
JSON
{ "name": "Acme Inc.", "settings": { "security": { "sessionTimeout": "8 hours" } } }

Response 200 #

The organisation after the change, without role.

Response fields #

FieldTypeDescription
idstringThe id of the organisation.
namestringThe name.
settings.localizationobjectsourceLanguage, timezone, messageFormat and machineTranslation, free text. The app shows the first three; machineTranslation is no longer used, see Machine translation.
settings.profileobjectdescription, industry and size.
settings.securityobjectrequire2fa, restrictDomains and passwordRequireMix (booleans), domains (list of strings such as @example.com), sessionTimeout, passwordMinLength, apiKeyMaxDays, ipAllowlist, auditRetentionDays and dataRegion.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
403forbiddenYou are not an owner or admin.
422invalid_requestA value is empty, too long, not in the list of allowed values, or domains holds something that is not like @example.com.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.