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

> Rename a channel or replace its destination and encrypted credential. Omitted secret fields keep the stored value.



## OpenAPI

````yaml /openapi.json patch /v1/orgs/{orgId}/alert-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}/alert-channels/{channelId}:
    patch:
      tags:
        - alertChannels
      summary: Update
      description: >-
        Rename a channel or replace its destination and encrypted credential.
        Omitted secret fields keep the stored value.
      operationId: alertChannels.update
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization'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: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  pattern: ^[a-z][a-z0-9-]{1,61}$
                kind:
                  type: string
                  enum:
                    - email
                    - signed_webhook
                    - slack
                email:
                  type: string
                  format: email
                webhookUrl:
                  type: string
                  format: uri
                  description: >-
                    HTTPS endpoint or incoming Slack webhook. Stored encrypted
                    and never returned.
              required: []
              additionalProperties: false
      responses:
        '200':
          description: Updated masked alert channel.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                    pattern: ^[a-z][a-z0-9-]{1,61}$
                  kind:
                    type: string
                    enum:
                      - email
                      - signed_webhook
                      - slack
                  destinationMasked:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Masked email address or endpoint. Full destinations are
                      never returned.
                  secretHint:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Non-secret suffix that identifies which stored credential
                      is active.
                  verified:
                    type: boolean
                  createdAt:
                    type: string
                    format: date-time
                  updatedAt:
                    type: string
                    format: date-time
                required:
                  - id
                  - name
                  - kind
                  - destinationMasked
                  - secretHint
                  - verified
                  - createdAt
                  - updatedAt
                additionalProperties: false
        '404':
          description: No such alert channel in this organization.
        '422':
          description: Channel kind and destination do not match or are invalid.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````