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

# Update a webhook endpoint

> Pause, resume, or relabel an endpoint. Omitted fields are left unchanged.

The URL cannot be changed: it is what the secret was issued for. Repoint an integration by deleting the endpoint and creating a new one, which issues a new secret.



## OpenAPI

````yaml /reference/openapi.yaml patch /v2/webhook-endpoints/{endpointID}
openapi: 3.1.0
info:
  title: Tamtam Public API
  version: 2.0.0
servers:
  - url: https://api.tamtam.ai/api
security: []
paths:
  /v2/webhook-endpoints/{endpointID}:
    patch:
      tags:
        - Webhooks
      summary: Update a webhook endpoint
      description: >-
        Pause, resume, or relabel an endpoint. Omitted fields are left
        unchanged.


        The URL cannot be changed: it is what the secret was issued for. Repoint
        an integration by deleting the endpoint and creating a new one, which
        issues a new secret.
      operationId: update-webhook-endpoint
      parameters:
        - description: Endpoint UUID.
          in: path
          name: endpointID
          required: true
          schema:
            description: Endpoint UUID.
            type: string
        - description: Target account UUID. Required for staff; ignored for customer keys.
          explode: false
          in: query
          name: account_id
          schema:
            description: >-
              Target account UUID. Required for staff; ignored for customer
              keys.
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookEndpointInputBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookEndpointDto'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - apikeyAuth: []
        - bearerAuth: []
components:
  schemas:
    UpdateWebhookEndpointInputBody:
      additionalProperties: false
      properties:
        description:
          description: Omit to leave unchanged.
          type: string
        is_enabled:
          description: Pause or resume delivery to this endpoint. Omit to leave unchanged.
          examples:
            - false
          type: boolean
      type: object
    WebhookEndpointDto:
      additionalProperties: false
      properties:
        created_at:
          description: >-
            When the endpoint was registered. Only events detected after this
            are ever pushed to it.
          format: date-time
          type: string
        description:
          description: Free-text label, so several endpoints can be told apart.
          type: string
        id:
          description: Endpoint UUID. Use it to update, delete, or filter deliveries.
          type: string
        is_enabled:
          description: >-
            When false, nothing is pushed here. Events are unaffected and stay
            readable from the feed.
          type: boolean
        updated_at:
          description: When the endpoint was last changed.
          format: date-time
          type: string
        url:
          description: HTTPS destination events are POSTed to.
          examples:
            - https://hooks.example.com/tamtam
          type: string
      required:
        - id
        - url
        - is_enabled
        - created_at
        - updated_at
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apikeyAuth:
      description: Account API key passed in the Authorization header
      in: header
      name: Authorization
      type: apiKey
    bearerAuth:
      description: Bearer JWT obtained via the OAuth 2.1 authorization flow
      scheme: bearer
      type: http

````