PUT /rebranding/{org_id}/products/{product_id}

Multipart upload of logos, favicon, background, and product name. All fields optional. Only provided fields are updated. Requires rebranding to be enabled for the organization.

Path parameters

  • org_id string Required

    Logto organization ID (logto_id, not the database UUID)

  • product_id string Required
multipart/form-data

Body

  • product_name string

    Maximum length is 100.

  • logo_light_rect string(binary)
  • logo_dark_rect string(binary)
  • logo_light_square string(binary)
  • logo_dark_square string(binary)
  • favicon string(binary)
  • background_image string(binary)

Responses

  • 200

    Assets uploaded

  • 400 application/json

    Bad request - validation error

    Hide response attributes Show response attributes object
    • code integer

      HTTP error code

    • message string

      Error message

    • data object
      Hide data attributes Show data attributes object
      • type string

        Type of error

        Values are validation_error or external_api_error.

      • errors array[object]
        Hide errors attributes Show errors attributes object
        • key string

          Field name that failed validation

        • message string

          Error code or message

        • value string

          Value that failed validation

      • details

        Additional error details

  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
PUT /rebranding/{org_id}/products/{product_id}
curl \
 --request PUT 'https://collect.your-domain.com/api/rebranding/{org_id}/products/{product_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: multipart/form-data" \
 --form "product_name=string" \
 --form "logo_light_rect=@file" \
 --form "logo_dark_rect=@file" \
 --form "logo_light_square=@file" \
 --form "logo_dark_square=@file" \
 --form "favicon=@file" \
 --form "background_image=@file"
Response examples (400)
{
  "code": 400,
  "message": "validation failed",
  "data": {
    "type": "validation_error",
    "errors": [
      {
        "key": "username",
        "message": "required",
        "value": "string"
      }
    ]
  }
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}