> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Put v1panelsettingsthemeassets

> Requires settings.write. The body is the image itself rather than a form or a base64 field, so its size is bounded before a byte is read. The declared content type must match the magic number of the bytes. SVG is not accepted: it can carry a script, and these files are served from the same origin as both panels.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml put /v1/panel/settings/theme/assets/{kind}
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/settings/theme/assets/{kind}:
    put:
      tags:
        - panel
      description: >-
        Requires settings.write. The body is the image itself rather than a form
        or a base64 field, so its size is bounded before a byte is read. The
        declared content type must match the magic number of the bytes. SVG is
        not accepted: it can carry a script, and these files are served from the
        same origin as both panels.
      operationId: savePanelBrandingAsset
      parameters:
        - in: path
          name: kind
          required: true
          schema:
            type: string
            enum:
              - logo_light
              - logo_dark
              - favicon
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        description: >-
          One PNG, JPEG, or WebP image. The exact type is declared in the
          Content-Type header and must match the bytes themselves; the media
          type range here is what lets one request body carry any of the three.
        content:
          image/*:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelBrandingAsset'
        '403':
          $ref: '#/components/responses/Problem'
        '413':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    PanelBrandingAsset:
      type: object
      required:
        - kind
        - contentType
        - byteSize
        - checksum
        - updatedAt
      properties:
        kind:
          type: string
          enum:
            - logo_light
            - logo_dark
            - favicon
        contentType:
          type: string
          enum:
            - image/png
            - image/jpeg
            - image/webp
        byteSize:
          type: integer
          format: int64
        checksum:
          type: string
          description: >-
            SHA-256 of the bytes, hex encoded. Published as the ETag of the
            asset.
        updatedAt:
          type: string
          format: date-time
        updatedBy:
          type: string
          format: uuid
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.