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

> Change retention, presence, quotas, or pause state. Reducing retention removes expired replay asynchronously.



## OpenAPI

````yaml /openapi.json patch /v1/orgs/{orgId}/projects/{projectId}/realtime/channels/{channelId}
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}/realtime/channels/{channelId}:
    patch:
      tags:
        - realtime
      summary: Update Channel
      description: >-
        Change retention, presence, quotas, or pause state. Reducing retention
        removes expired replay asynchronously.
      operationId: realtime.updateChannel
      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: channelId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        x-korve-max-bytes: 16384
        content:
          application/json:
            schema:
              type: object
              properties:
                retentionSeconds:
                  type: integer
                  minimum: 0
                  maximum: 86400
                presenceEnabled:
                  type: boolean
                maxConnections:
                  type: integer
                  minimum: 1
                  maximum: 10000
                maxMessagesPerSecond:
                  type: integer
                  minimum: 1
                  maximum: 2500
                paused:
                  type: boolean
              additionalProperties: false
      responses:
        '200':
          description: Updated channel.
          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:
                      - ready
                      - paused
                      - failed
                  region:
                    type: string
                    enum:
                      - global
                    description: >-
                      Realtime channels are globally routed. The platform does
                      not promise a storage jurisdiction.
                  retentionSeconds:
                    type: integer
                    minimum: 0
                    maximum: 86400
                  presenceEnabled:
                    type: boolean
                  maxConnections:
                    type: integer
                    minimum: 1
                    maximum: 10000
                  maxMessagesPerSecond:
                    type: integer
                    minimum: 1
                    maximum: 2500
                  deliveryGuarantee:
                    type: string
                    enum:
                      - at-most-once-live
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - environment
                  - status
                  - region
                  - retentionSeconds
                  - presenceEnabled
                  - maxConnections
                  - maxMessagesPerSecond
                  - deliveryGuarantee
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '404':
          description: No such channel.
        '422':
          description: Invalid channel configuration.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````