Saltar al contenido

Update an org branding

Módulo Settings

PATCH/org-branding/{id}orgBrandings.update

White label brand settings for Atlas, Gateway, email and Compass. Updates the fields sent; omitted fields are unchanged. Requires `If-Match` with the current `ETag`: a stale tag returns 412 and a missing tag returns 428.

  • Requiere la capacidad org.white_label.write.
  • Alcances de OAuth: org.
  • Envía If-Match con el ETag que leíste. Una etiqueta desactualizada devuelve 412; si falta, devuelve 428.
  • Estados de error: 400, 401, 404, 412, 422, 428, 429. Los errores son detalles de problema RFC 9457.

Parámetros de ruta y de consulta

orgBrandings.update: Parámetros de ruta y de consulta
CampoTipoObligatorioDescripción
idstring (uuid)SíIdentifier of the org branding.

Cuerpo de la solicitud: OrgBrandingUpdate

orgBrandings.update: OrgBrandingUpdate
CampoTipoObligatorioDescripción
display_namestring | nullNoBrand display name.Restricciones: length 1 to 300
logo_light_pathstring | nullNoLogo for light themes: object path in the org-brand bucket, starting with the org id.Restricciones: length 1 to 1024
logo_dark_pathstring | nullNoLogo for dark themes: object path in the org-brand bucket.Restricciones: length 1 to 1024
favicon_pathstring | nullNoFavicon: object path in the org-brand bucket.Restricciones: length 1 to 1024
app_icon_pathstring | nullNoApp icon: object path in the org-brand bucket.Restricciones: length 1 to 1024
accent_hexstring | nullNoAccent color as uppercase #RRGGBB, replacing accent-default in every theme; null keeps the platform accent.Restricciones: pattern ^#[0-9A-F]{6}$
neutral_tint_hexstring | nullNoOptional neutral tint as uppercase #RRGGBB.Restricciones: pattern ^#[0-9A-F]{6}$
font_familystring | nullNoFont family from the approved list; null keeps the platform font.Restricciones: length 1 to 300
radius_scale"Compact" | "Default" | "Rounded"NoCorner radius scale.
email_sender_namestring | nullNoSender name on emails sent for the org.Restricciones: length 1 to 300
support_emailstring (email) | nullNoSupport address shown on branded surfaces.
legal_entity_namestring | nullNoLegal entity named on generated documents and emails.Restricciones: length 1 to 300
suppress_powered_bybooleanNoTrue hides Powered by XOS; it takes effect only while the plan includes white label.
{
  "display_name": "Northwind Live",
  "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "accent_hex": "#1F6FEB",
  "neutral_tint_hex": "#1F6FEB",
  "font_family": "Inter",
  "radius_scale": "Compact",
  "email_sender_name": "Northwind Live",
  "support_email": "alex.rivera@northwindlive.example",
  "legal_entity_name": "Northwind Live LLC",
  "suppress_powered_by": false
}

Respuesta 200: OrgBranding

orgBrandings.update: OrgBranding
CampoTipoObligatorioDescripción
idstring (uuid)SíIdentifier of the org branding.
org_idstring (uuid)SíIdentifier of the owning organization, derived from the parent row and never accepted from the caller.
created_atstring (date-time)SíWhen the row was created.
created_bystring (uuid) | nullSíIdentifier of the person who created the row; null when a seed, platform or system process created it.
updated_atstring (date-time)SíWhen the row was last updated.
updated_bystring (uuid) | nullSíIdentifier of the person who last updated the row; null when a seed, platform or system process updated it.
display_namestring | nullSíBrand display name.Restricciones: length 1 to 300
logo_light_pathstring | nullSíLogo for light themes: object path in the org-brand bucket, starting with the org id.Restricciones: length 1 to 1024
logo_dark_pathstring | nullSíLogo for dark themes: object path in the org-brand bucket.Restricciones: length 1 to 1024
favicon_pathstring | nullSíFavicon: object path in the org-brand bucket.Restricciones: length 1 to 1024
app_icon_pathstring | nullSíApp icon: object path in the org-brand bucket.Restricciones: length 1 to 1024
accent_hexstring | nullSíAccent color as uppercase #RRGGBB, replacing accent-default in every theme; null keeps the platform accent.Restricciones: pattern ^#[0-9A-F]{6}$
neutral_tint_hexstring | nullSíOptional neutral tint as uppercase #RRGGBB.Restricciones: pattern ^#[0-9A-F]{6}$
font_familystring | nullSíFont family from the approved list; null keeps the platform font.Restricciones: length 1 to 300
radius_scale"Compact" | "Default" | "Rounded"SíCorner radius scale.
email_sender_namestring | nullSíSender name on emails sent for the org.Restricciones: length 1 to 300
support_emailstring (email) | nullSíSupport address shown on branded surfaces.
legal_entity_namestring | nullSíLegal entity named on generated documents and emails.Restricciones: length 1 to 300
suppress_powered_bybooleanSíTrue hides Powered by XOS; it takes effect only while the plan includes white label.
{
  "id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "org_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "created_at": "2026-10-08T14:30:00Z",
  "created_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "updated_at": "2026-10-08T14:30:00Z",
  "updated_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "display_name": "Northwind Live",
  "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
  "accent_hex": "#1F6FEB",
  "neutral_tint_hex": "#1F6FEB",
  "font_family": "Inter",
  "radius_scale": "Compact",
  "email_sender_name": "Northwind Live",
  "support_email": "alex.rivera@northwindlive.example",
  "legal_entity_name": "Northwind Live LLC",
  "suppress_powered_by": false
}

Ejemplos de código

curl -X PATCH "$XOS_BASE_URL/org-branding/0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f" \
  -H "Authorization: Bearer $XOS_API_KEY" \
  -H 'If-Match: W/"etag-from-your-last-read"' \
  -H "Content-Type: application/json" \
  -d '{"display_name":"Northwind Live","logo_light_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","logo_dark_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","favicon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","app_icon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","accent_hex":"#1F6FEB","neutral_tint_hex":"#1F6FEB","font_family":"Inter","radius_scale":"Compact","email_sender_name":"Northwind Live","support_email":"alex.rivera@northwindlive.example","legal_entity_name":"Northwind Live LLC","suppress_powered_by":false}'
const { data, etag } = await xos.orgBrandings.update("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {
    "display_name": "Northwind Live",
    "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg",
    "accent_hex": "#1F6FEB",
    "neutral_tint_hex": "#1F6FEB",
    "font_family": "Inter",
    "radius_scale": "Compact",
    "email_sender_name": "Northwind Live",
    "support_email": "alex.rivera@northwindlive.example",
    "legal_entity_name": "Northwind Live LLC",
    "suppress_powered_by": false
  }, { ifMatch: etag });
response = xos.org_brandings.update("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {"display_name": "Northwind Live", "logo_light_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "logo_dark_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "favicon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "app_icon_path": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg", "accent_hex": "#1F6FEB", "neutral_tint_hex": "#1F6FEB", "font_family": "Inter", "radius_scale": "Compact", "email_sender_name": "Northwind Live", "support_email": "alex.rivera@northwindlive.example", "legal_entity_name": "Northwind Live LLC", "suppress_powered_by": False}, if_match=etag)
xos org-brandings update 0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f --data '{"display_name":"Northwind Live","logo_light_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","logo_dark_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","favicon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","app_icon_path":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/logo-light.svg","accent_hex":"#1F6FEB","neutral_tint_hex":"#1F6FEB","font_family":"Inter","radius_scale":"Compact","email_sender_name":"Northwind Live","support_email":"alex.rivera@northwindlive.example","legal_entity_name":"Northwind Live LLC","suppress_powered_by":false}' --if-match auto