> ## Documentation Index
> Fetch the complete documentation index at: https://docs.korve.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Update

> Update retention, delivery delay, consumer, pause state, or dead-letter routing.



## OpenAPI

````yaml /openapi.json patch /v1/orgs/{orgId}/projects/{projectId}/queues/{queueId}
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/queues/{queueId}:
    patch:
      tags:
        - queues
      summary: Update
      description: >-
        Update retention, delivery delay, consumer, pause state, or dead-letter
        routing.
      operationId: queues.update
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: queueId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 32768
        content:
          application/json:
            schema:
              type: object
              properties:
                retentionSeconds:
                  type: integer
                deliveryDelaySeconds:
                  type: integer
                deadLetterQueueId:
                  type:
                    - string
                    - 'null'
                consumer:
                  type: object
                  description: >-
                    Signed push consumer. A delivery invokes this
                    project-relative HTTPS path with one message envelope or `{
                    messages: [...] }` for a logical batch. Deliveries are at
                    least once; a successful 2xx response acknowledges every
                    message in that request.
                  properties:
                    path:
                      type: string
                      pattern: ^/
                      description: >-
                        Project-relative HTTP path. Absolute URLs and
                        cross-project delivery are refused.
                    maxBatchSize:
                      type: integer
                      description: >-
                        Maximum messages in one signed consumer request, from 1
                        to 100.
                    maxBatchWaitSeconds:
                      type: integer
                      description: >-
                        Maximum time an underfilled logical batch may wait after
                        its first message becomes available, from 0 to 60
                        seconds.
                    maxRetries:
                      type: integer
                      description: Delivery retries, from 0 to 100. Defaults to 3.
                    retryDelaySeconds:
                      type: integer
                      description: Delay before retry, from 0 to 86400 seconds.
                    maxConcurrency:
                      type:
                        - integer
                        - 'null'
                      description: >-
                        Maximum concurrent signed batch requests for this
                        logical queue across all platform replicas; null lets
                        the platform scale automatically.
                  required:
                    - path
                  additionalProperties: false
                paused:
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Updated queue.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{1,61}$
                  environment:
                    type: string
                  status:
                    type: string
                    enum:
                      - provisioning
                      - ready
                      - paused
                      - failed
                  retentionSeconds:
                    type: integer
                    description: Message retention. Configurable up to 14 days.
                  deliveryDelaySeconds:
                    type: integer
                    description: Default delivery delay, at most 86400 seconds.
                  deadLetterQueueId:
                    type:
                      - string
                      - 'null'
                  consumer:
                    type: object
                    description: >-
                      Signed push consumer. A delivery invokes this
                      project-relative HTTPS path with one message envelope or
                      `{ messages: [...] }` for a logical batch. Deliveries are
                      at least once; a successful 2xx response acknowledges
                      every message in that request.
                    properties:
                      path:
                        type: string
                        pattern: ^/
                        description: >-
                          Project-relative HTTP path. Absolute URLs and
                          cross-project delivery are refused.
                      maxBatchSize:
                        type: integer
                        description: >-
                          Maximum messages in one signed consumer request, from
                          1 to 100.
                      maxBatchWaitSeconds:
                        type: integer
                        description: >-
                          Maximum time an underfilled logical batch may wait
                          after its first message becomes available, from 0 to
                          60 seconds.
                      maxRetries:
                        type: integer
                        description: Delivery retries, from 0 to 100. Defaults to 3.
                      retryDelaySeconds:
                        type: integer
                        description: Delay before retry, from 0 to 86400 seconds.
                      maxConcurrency:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          Maximum concurrent signed batch requests for this
                          logical queue across all platform replicas; null lets
                          the platform scale automatically.
                    required:
                      - path
                    additionalProperties: false
                  deliveryGuarantee:
                    type: string
                    enum:
                      - at-least-once
                  orderingGuarantee:
                    type: string
                    enum:
                      - none
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - environment
                  - status
                  - retentionSeconds
                  - deliveryDelaySeconds
                  - deadLetterQueueId
                  - consumer
                  - deliveryGuarantee
                  - orderingGuarantee
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '404':
          description: No such queue in this project.
        '422':
          description: Invalid queue configuration.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````