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

# Update Destination



## OpenAPI

````yaml PATCH /v1/webhooks/destinations/{id}
openapi: 3.0.3
info:
  title: Dome Platform API
  description: Connect and REST APIs for the Dome agent governance platform.
  version: 2.0.0
servers:
  - url: https://api.domesystems.ai
    description: Production
security: []
tags:
  - name: Agents
  - name: Authorization
  - name: Guards
  - name: Tools
  - name: Tool Catalog
  - name: Models
  - name: Model Pools
  - name: Quotas
  - name: Gateways
  - name: Webhooks
  - name: Audit
  - name: Workspaces
  - name: Access Control
  - name: Tenants
  - name: Platform Keys
  - name: Enrollment
  - name: Platform
  - name: Identity
paths:
  /v1/webhooks/destinations/{id}:
    patch:
      tags:
        - Webhooks
      operationId: EventingService_UpdateDestination
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateDestinationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateDestinationResponse'
components:
  schemas:
    UpdateDestinationRequest:
      type: object
      properties:
        workspace_id:
          type: string
        id:
          type: string
        name:
          type: string
        endpoint_url:
          type: string
        active:
          type: boolean
        headers:
          allOf:
            - $ref: '#/components/schemas/HeadersUpdate'
          description: >-
            Absent = leave headers unchanged (zero Vault I/O). Present = replace
            the
             entire header set with the wrapper's contents (an empty set clears them).
        content_format:
          type: string
          description: >-
            Absent = leave content_format unchanged; present = set it
            ("object"|"array").
        provider_settings:
          type: object
          additionalProperties:
            type: string
          description: >-
            provider_settings, on a provider destination: empty = leave
            unchanged; a
             non-empty map is a FULL replacement of the provider settings (re-validated,
             and the endpoint URL is rebuilt). provider_key itself is immutable; rejected
             on a "webhook" (Custom) destination.
        provider_credentials:
          type: object
          additionalProperties:
            type: string
          description: >-
            provider_credentials, on a provider destination: empty = leave
            unchanged
             (zero Vault I/O); a non-empty map merges per key into the stored credentials
             (write-only). Rejected on a "webhook" (Custom) destination.
    UpdateDestinationResponse:
      type: object
      properties:
        destination:
          $ref: '#/components/schemas/Destination'
    HeadersUpdate:
      type: object
      properties:
        headers:
          type: array
          items:
            $ref: '#/components/schemas/HeaderSpec'
      description: >-
        HeadersUpdate wraps the full custom-header set for an update. The
        wrapper (vs a
         bare repeated field) distinguishes "replace the header set, possibly with an
         empty set" (headers present) from "leave headers unchanged" (headers absent):
         a bare repeated field cannot express "clear all headers". Secret values follow
         the same write-only rule as HeaderSpec.
    Destination:
      type: object
      properties:
        id:
          type: string
        workspace_id:
          type: string
        tenant_id:
          type: string
        name:
          type: string
        destination_type:
          type: string
        endpoint_url:
          type: string
        active:
          type: boolean
        health_status:
          type: string
        circuit_state:
          type: string
        rate_limit_per_second:
          type: integer
          format: int32
        concurrency_limit:
          type: integer
          format: int32
        request_timeout_seconds:
          type: integer
          format: int32
        max_body_bytes:
          type: integer
          format: int32
        signing_key_id:
          type: string
        last_success_at:
          type: string
          format: date-time
        last_failure_at:
          type: string
          format: date-time
        created_by_user_id:
          type: string
        updated_by_user_id:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        headers:
          type: array
          items:
            $ref: '#/components/schemas/HeaderSpec'
          description: |-
            Custom headers sent with every delivery (secret values blanked — see
             HeaderSpec).
        provider_key:
          type: string
          description: |-
            Provider destinations: the registry key plus its non-secret settings
             (site/region/dataset/...). Both empty for destination_type="webhook".
        provider_settings:
          type: object
          additionalProperties:
            type: string
        content_format:
          type: string
          description: |-
            Body shape for custom destinations: "object" (default) or "array"
             (single-element JSON array wrap, for array-only intakes).
    HeaderSpec:
      type: object
      properties:
        name:
          type: string
        source:
          type: string
        value:
          type: string
      description: >-
        Destination is the customer-visible view of an eventing destination. It
        never
         exposes the signing secret or its Vault reference — only safe display metadata
         and worker-enforced health/circuit state.
         HeaderSpec is one custom header on a webhook destination. For
         source="literal" the value is stored and echoed on reads. For
         source="secret" the value is accepted on WRITE ONLY (it is stored in Vault,
         never in a relational column) and is NEVER echoed — reads return value="".

````