Organization branding

Update organization branding

PATCH /realm updates settings for the authenticated user's organization. The branding fields below are an extension of this commercial server; they are not guaranteed to be available on other compatible servers. This page describes these five fields, not every setting accepted by this endpoint.

Use an API key belonging to an organization administrator or owner. A key cannot change another organization's settings. A bot key does not gain administrator privileges from the account that created the bot; see Roles and permissions.

All five parameters are optional strings. Omit a parameter to retain its current value. Send an empty string to clear the organization override and use the application's defaults. Send form-encoded parameters, not a JSON request body.

Parameter Accepted value
branding_primary_color #RRGGBB, exactly six hexadecimal digits after #, or an empty string.
branding_help_url An absolute HTTPS help URL, at most 2048 characters, or an empty string.
branding_support_url An absolute HTTPS support URL, at most 2048 characters, or an empty string.
branding_terms_url An absolute HTTPS terms URL, at most 2048 characters, or an empty string.
branding_support_email One valid email address, at most 254 characters, or an empty string.

URLs must not contain embedded usernames, passwords or whitespace. The email address must not contain a display name, whitespace or multiple recipients. These are public identity and contact settings: never put service credentials or private access tokens in them. Setting a support email does not configure SMTP.

Python example

Use the Python library with a separate perorc file for an administrator of the intended organization. The portal addresses below are examples to replace.

import pero

client = pero.Client(config_file="/secure/path/organization-admin.perorc")
result = client.call_endpoint(
    "realm",
    method="PATCH",
    request={
        "branding_primary_color": "#2463EB",
        "branding_help_url": "https://docs.example/help/",
        "branding_support_url": "https://support.example/",
        "branding_terms_url": "https://docs.example/terms/",
        "branding_support_email": "support@example.com",
    },
)
if result["result"] != "success":
    raise RuntimeError("Organization branding update failed")

To reset only the color, send request={"branding_primary_color": ""}. Omitting the other fields retains their settings. Check the response's result; HTTP transport success alone does not mean the update succeeded. Invalid values and insufficient permissions return an API error; see Error handling.

Verify and discover

The server settings include the public branding object for the organization addressed by the request. Authenticated registration also includes branding and the realm_branding_* fields. Read the returned values rather than inferring support from a historical upstream feature-level number. Older or different servers may not advertise this extension.

An organization support URL takes precedence over its support email in the support action. Without that URL, an explicit organization email takes precedence over the application's default support portal. A custom help URL is a portal address; clients do not translate its content or infer its language routes.

Verify the destination organization, save, then check the supported clients in English and Russian. The fields do not change application store identities, provision a customer domain or turn on customer-owned encryption keys. See organization profile settings and deployment options.