> ## 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 v1panelsupportqueues

> Requires settings.write, not support.write: a queue's targets are the promise an operator works under, not day-to-day support work. Upserts by code; `isDefault: true` clears the previous default in the same transaction.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml put /v1/panel/support/queues
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/support/queues:
    put:
      tags:
        - panel
      description: >-
        Requires settings.write, not support.write: a queue's targets are the
        promise an operator works under, not day-to-day support work. Upserts by
        code; `isDefault: true` clears the previous default in the same
        transaction.
      operationId: savePanelSupportQueue
      parameters:
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PanelSupportQueueInput'
      responses:
        '200':
          description: Saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelSupportQueue'
        '403':
          $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:
    PanelSupportQueueInput:
      type: object
      required:
        - code
        - nameEn
        - nameRu
      properties:
        code:
          type: string
          pattern: ^[a-z][a-z0-9_-]{1,63}$
        nameEn:
          type: string
        nameRu:
          type: string
        firstResponseTargetSeconds:
          type: integer
          format: int64
          minimum: 0
        resolutionTargetSeconds:
          type: integer
          format: int64
          minimum: 0
        isDefault:
          type: boolean
        sortOrder:
          type: integer
    PanelSupportQueue:
      type: object
      required:
        - id
        - code
        - nameEn
        - nameRu
        - firstResponseTargetSeconds
        - resolutionTargetSeconds
        - isDefault
        - sortOrder
        - openCount
        - unassignedCount
        - breachedCount
      properties:
        id:
          type: string
          format: uuid
        code:
          type: string
        nameEn:
          type: string
        nameRu:
          type: string
        firstResponseTargetSeconds:
          type: integer
          format: int64
        resolutionTargetSeconds:
          type: integer
          format: int64
        isDefault:
          type: boolean
        sortOrder:
          type: integer
        openCount:
          type: integer
          format: int64
        unassignedCount:
          type: integer
          format: int64
        breachedCount:
          type: integer
          format: int64
    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.