Unidy Docs

Brand configuration

Discover, validate and update supported brand settings and presentation resources.

V2 provides a brand directory and supported configuration resources. API v2 must be enabled, and the caller needs the relevant settings or customization permissions.

Select the brand explicitly

GET /api/v2/brands lists accessible directory records; GET /api/v2/brands/{id} reads one. Use the returned brand ID for configuration routes.

Configuration paths start with /api/v2/brands/{brand_id}. Use the numeric directory ID or current, which resolves the exact request host. These routes select the brand from the path; the general X-Unidy-Brand header does not override that selection.

An unknown host for current, an unknown ID or a brand outside the caller's permitted set returns 404. Do not substitute the brand name used by X-Unidy-Brand for a directory ID.

Validate a configuration change

Method and suffixPurpose
GET /configRead the current document.
GET /config/schemaDiscover writable fields, groups and cross-field constraints.
POST /config/validateValidate a proposed document without saving.
PATCH /configValidate and save the supplied change.

The schema includes authentication, registration, password policy, email, language, ticket-transfer, service-visibility and redirect settings, plus supported root fields such as headless mode. It does not make every dashboard option writable.

For example, submit this to POST /api/v2/brands/current/config/validate with your bearer token and JSON content type:

json
{
  "payload": {
    "data": {
      "language": {
        "language": "en",
        "available_languages": ["en", "de"],
        "multilanguage_enabled": true
      }
    }
  }
}

After validation, send the same reviewed document with PATCH /config, then read back and test the affected customer flow. Validation does not reserve a configuration version against another administrator's later change.

Unknown keys are rejected. Cross-field checks apply to the proposed combined state: at least one login method must remain enabled, headless mode needs a return URI, and multilingual settings must form a valid language set. Omitted settings are preserved; use null or an empty list only where the discovered schema defines that behavior.

Other configuration resources

All paths below follow /api/v2/brands/{brand_id}:

ResourceSupported workflow
/menu_linksList, create, read, update and delete menu links.
/legal_linksList and update the supported legal-link keys.
/custom_css_blocksManage CSS blocks and use explicit publish or discard-draft actions. Saving a draft is separate from publishing it.
/login_providers/brand_linksInspect and update existing provider links and their brand presentation. This does not create a provider or expose its credentials.

Use the deployed reference for writable fields, ordering and action-specific permissions. A brand link and its shared provider are separate resources; editing the link does not transfer ownership of the provider.

Keep a record of the previous values before changing sign-in, redirects or public content. Verify behavior on the intended brand after saving. A schema-valid URL or a successful API response does not prove an external provider callback or customer journey works.

Was this page helpful?