Skip to content
Dashboard
Theme
Theme

Update an organization's slug, logo and branding overrides

PATCH /v1/organizations/{org}/profile: Update an organization's slug, logo and branding overrides.

View Markdown

PATCH /v1/organizations/{org}/profile

slug is unique per environment (lower-case letters, digits and hyphens, 1–63 characters; organization_slug_taken when used). logo_url must be a URL returned by POST /v1/branding/logo for this environment. logo_url and branding overrides need Pro or above (plan_limit_reached). An explicit null clears a field; absent fields are kept. Unset fields fall back to the environment branding.

Scope
organizations:write
Auth
Secret key (sk_…)
Since
1.0
  • org string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • Idempotency-Key string

    Honoured for 24 h; a replay returns the original response.

    min length 1 · max length 255

  • slug string or null

  • logo_url string or null

  • primary_color string or null

Errors share one shape; see the error code catalogue.

curl -X PATCH \
"https://api.ohauthcat.com/v1/organizations/org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/profile" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"slug": "acme",
"logo_url": "https://app.acme.com/callback",
"primary_color": "example_primary_color"
}'
Response 200
{
"object": "organization_profile",
"organization_id": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"slug": "acme",
"logo_url": "https://app.acme.com/callback",
"primary_color": "example_primary_color",
"effective_logo_url": "https://app.acme.com/callback"
}