跳到主要内容

SettingsDto

The general configuration of the current portal, as the client shell needs it before and after sign-in.

NameTypeDescriptionNotes
timezoneStringThe portal time zone as an IANA identifier, which is the zone every date this API returns in portal time is expressed in. Filled in for a signed-in caller only.[optional] [example: UTC] [nullable]
trustedDomainsListThe mail domains a new member may register or be invited from without confirming the address. It is filled in for a signed-in caller, and for an anonymous one only while enabledJoin is true; it is empty whenever trustedDomainsType is not Custom.[optional] [example: [mydomain.com, mydomain1.com]] [nullable]
trustedDomainsTypeTenantTrustedDomainsTypeHow the mail domains above are applied: no domain trusted, every domain trusted, or only the listed ones. Filled in under the same conditions as trustedDomains.[optional] [enum: 0, 1, 2]
cultureStringThe default language of the portal as a culture name, which is what unauthenticated pages are rendered in. A signed-in member may have a language of their own, and that one is not reported here.[required] [example: en-US] [nullable]
utcOffsetString (date-span)The portal's offset from UTC as a time span, positive east of UTC. Filled in for a signed-in caller only, and taken at the moment of the call, so it already reflects daylight saving time.[optional] [example: -08:30:00]
utcHoursOffsetDouble (double)The same offset in hours, fractional for a zone that is not on a whole hour. It is there so a client does not have to parse utcOffset.[optional] [example: -8.5]
greetingSettingsStringThe portal title shown on the login page and in letters. It falls back to the product name in the portal language while the portal has been given no title of its own.[optional] [example: Web Office Applications] [nullable]
ownerIdUUID (uuid)The portal owner, the one account that cannot be removed or demoted. Filled in for a signed-in caller only, and the empty GUID for an anonymous one.[optional] [example: 00000000-0000-0000-0000-000000000000]
nameSchemaIdStringThe naming scheme the portal uses for its own vocabulary - what a member, a group or a room is called in the interface. GET api/2.0/settings/customschemas/{id} spells that vocabulary out. Filled in for a signed-in caller only.[optional] [example: default] [nullable]
enabledJoinBooleanWhether someone who is not invited may still register, which is the case when the portal trusts every mail domain or a list of them. It is computed for an anonymous caller only and left out entirely for a signed-in one, so a missing value is not a false.[optional] [example: true] [nullable]
enableAdmMessBooleanWhether the login page may offer the form for writing to the portal administrators. It is also true while the portal's payment has lapsed, whatever the setting says, so it can be set on a portal where an administrator switched the form off.[optional] [example: true] [nullable]
thirdpartyEnableBooleanWhether the login page may offer sign-in through an external identity provider. It is computed for an anonymous caller only; GET api/2.0/capabilities reports the same thing with the list of providers.[optional] [example: true] [nullable]
docSpaceBooleanAlways true in this product. It exists so a client that also talks to older ONLYOFFICE portals can tell them apart, and is not a feature switch.[optional] [example: true]
standaloneBooleanWhether this is a server installation someone administers themselves rather than a portal in the cloud. Several fields below and a number of operations behave differently in the two, so a client that has to branch on the deployment reads it here.[optional] [example: true]
isAmiBooleanWhether the installation runs from an Amazon machine image, which is a server installation that can read its own instance metadata. It is false on every cloud portal.[optional] [example: true]
baseDomainStringThe domain new portals of this installation are created under, which is what a portal name is checked against and appended to. It is empty on an installation that serves a single portal on a fixed address.[required] [example: example.com] [nullable]
wizardTokenStringThe token that authorizes the first-run setup wizard. It is handed out to anonymous callers only, and only while the wizard has not been completed; once it has, the field stays empty for good.[optional] [example: dGhpc2lzYXRva2Vu...] [nullable]
passwordHashPasswordHashSettingsDtoThe parameters for hashing a password in the client before it is sent - the salt, the iteration count and the hash size. It is filled in for an anonymous caller and, for a signed-in one, only when withPassword=true is asked for. Hash with exactly these parameters and send the result as passwordHash, since the portal cannot reproduce the hash from a different set.[optional]
firebaseFirebaseDtoThe Firebase project a mobile or web client sends push registrations to. Filled in for a signed-in caller only, and its own fields are empty strings on an installation that configures no Firebase project.[optional]
versionStringThe product version of the portal, empty when the installation does not publish one. It is the version of the server, not of this API, whose own version is fixed at 2.0.[optional] [example: 12.5.0] [nullable]
recaptchaTypeRecaptchaTypeWhich CAPTCHA the login form has to render, decided by the installation's configuration. Computed for an anonymous caller only.[optional] [enum: 0, 1, 2, 3]
recaptchaPublicKeyStringThe site key for the CAPTCHA named by recaptchaType, safe to embed in a page. It is empty when the installation configures no CAPTCHA, in which case the login form asks for none.[optional] [example: abc123def456] [nullable]
debugInfoBooleanWhether the client may collect and send diagnostic information. Filled in for a signed-in caller only, and false unless the installation switched it on.[optional] [example: true]
socketUrlStringThe address of the socket service that pushes live updates to a client. It is filled in for a signed-in caller and for an anonymous one who arrives with an external sharing link, and is empty when the installation runs no socket service - a client then has to poll.[optional] [example: https://example.com] [nullable]
tenantStatusTenantStatusThe lifecycle state of the portal. Anything other than active means most operations are refused for the moment, because the portal is being transferred, restored, encrypted or removed.[optional] [enum: 0, 1, 2, 3, 4, 5, 6]
tenantAliasStringThe portal's own name within the installation, which together with baseDomain forms the address it is reached at. PUT api/2.0/portal/portalrename changes it.[optional] [example: mycompany] [nullable]
displayAboutBooleanWhether the interface may show the About page. A cloud portal always may; a server installation may unless its plan includes branding and the vendor details hide the page.[optional] [example: true]
domainValidatorDomainNameRulesDtoThe rules a portal name is checked against - its length limits and the pattern it has to match - so a client can validate a rename before sending it. Filled in for a signed-in caller only.[optional]
zendeskKeyStringThe key that lets the client open the vendor's support chat, empty when the installation configures none. Filled in for a signed-in caller only.[optional] [example: abc123def456] [nullable]
tagManagerIdStringThe Google Tag Manager container the client should load, empty when the installation configures none. Filled in for a signed-in caller only.[optional] [example: GTM-XXXXXX] [nullable]
cookieSettingsEnabledBooleanWhether the portal limits how long an authentication session stays valid. The limit itself is read with GET api/2.0/settings/cookiesettings; while this is false a session is honoured for a year.[required] [example: true]
limitedAccessSpaceBooleanWhether the space-management section is restricted to the portal owner. Filled in for a signed-in caller only.[optional] [example: true]
limitedAccessDevToolsForUsersBooleanWhether the Developer Tools section is hidden from members who are not administrators. Filled in for a signed-in caller only.[optional] [example: true]
displayBannersBooleanWhether the interface may show the vendor's promotional banners. A cloud portal always reports true; on a server installation it follows the banner setting. Filled in for a signed-in caller only.[optional] [example: true]
aiEnabledBooleanWhether the AI features - chat, agents and vectorisation - may be used on this portal. While it is false the AI Agents folder is hidden and the AI operations are refused. Filled in for a signed-in caller only.[optional] [example: true]
walletLowBalanceBooleanWhether the portal wallet has already dropped below its low-balance threshold, so a client can warn about AI operations being cut off. It is reported to DocSpace administrators only and left empty for everyone else, which is not the same as a healthy balance.[optional] [example: false] [nullable]
userNameRegexStringThe pattern a member's first and last name has to match, so a client can validate a name before sending it. It is a .NET regular expression and is applied to each name part separately.[optional] [example: ^[a-zA-Z0-9_]{3,20}$] [nullable]
invitationLimitInteger (int32)How many invitations the portal may still send in the current window. Filled in for a signed-in caller only, and set to the maximum value of a 32-bit integer on an installation that limits nothing.[optional] [example: 10] [nullable]
pluginsPluginsDtoWhat the installation allows to be done with web plugins. Filled in for a signed-in caller only, with all three flags false unless the installation switched plugins on.[optional]
deepLinkDeepLinkDtoWhat a mobile client needs to hand a document link over to the installed application instead of opening it in the browser. Its fields are empty strings when the installation configures no application.[required]
formGalleryFormGalleryDtoWhere the ready-made form templates are served from and which extension they carry. Filled in for a signed-in caller only.[optional]
maxImageUploadSizeLong (int64)The largest image the portal accepts as a logo or an avatar, in bytes. Filled in for a signed-in caller only, and a larger upload is refused rather than resized.[optional] [example: 10485760]
logoTextStringThe wordmark to print next to the portal logo. It falls back to the built-in one while the portal has stored no text of its own, so it is never empty.[optional] [example: Company Name] [nullable]
externalResourcesExternalResourcesDtoThe addresses of the vendor's help, support, forum and video resources, already picked for the portal language. An entry is missing when the installation configures no address for it or the resource is switched off, which GET api/2.0/settings/rebranding/additional reports flag by flag.[optional]
defaultFolderTypeFolderTypeThe section the client should open after sign-in, which is the caller's own preference rather than a portal-wide one. Filled in for a signed-in caller only.[optional] [enum: 0, 1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37]
externalDbEnabledBooleanWhether the installation has an external database wired up for form results, without which the operations that write form results there are refused. Filled in for a signed-in caller only.[optional] [example: true]