Skip to main content

saveCompanyWhiteLabelSettings

BooleanWrapper saveCompanyWhiteLabelSettings(CompanyWhiteLabelSettingsRequestDto)

POST /api/2.0/settings/rebranding/company

Save the company white label settings

Stores the company details - name, site, support email, postal address and phone - that the About page and the notification letters print as the vendor. The whole set is replaced by the settings object of the request, so send every field, not only the changed ones; a request without that object, or with an email or a site that is not a valid value, is rejected as an invalid request. Requires a DocSpace administrator, a server installation with unrestricted space access and a plan that includes customization, which GET api/2.0/settings/enablewhitelabel reports; on a SaaS portal the call is refused. The values are installation-wide, so the change reaches every portal of that installation. Two fields are not taken from the request: the licensor flag is always stored as false, and hiding the About page is silently kept off unless the plan allows it. The call is mutating and idempotent, and answers true. Read the result back with GET api/2.0/settings/rebranding/company and undo it with DELETE api/2.0/settings/rebranding/company.

Parameters​

NameInTypeDescriptionNotes
CompanyWhiteLabelSettingsRequestDtobodyCompanyWhiteLabelSettingsRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200Always true once the company details have been stored for the installationBooleanWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400The request carries no settings object, or the email or the site is not a valid value--
402The portal's pricing plan has no customization option, or the branding section is switched off in the installation--
403The caller is not a DocSpace administrator, or the installation does not allow branding to be edited--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

BooleanWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json