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

# Pause or Resume a Webhook Subscription

> Pausing stops delivery without losing the subscription or its secret. Resuming re-arms every trigger from that moment: nothing that happened while the subscription was paused is delivered retroactively.

**Error codes**

| `error.code` | HTTP | Cause | What to do |
| --- | --- | --- | --- |
| `not_found` | 422 | No subscription with this id exists in the calling org. | Check the id; a deleted subscription is never returned. |



## OpenAPI

````yaml https://api.monaco.com/openapi.json patch /v1/webhooks/subscriptions/{subscription_id}
openapi: 3.1.0
info:
  title: Monaco Public API
  description: Public API for Monaco
  version: 1.0.0
servers:
  - url: https://api.monaco.com
security: []
paths:
  /v1/webhooks/subscriptions/{subscription_id}:
    patch:
      tags:
        - Webhooks
      summary: Pause or Resume a Webhook Subscription
      description: >-
        Pausing stops delivery without losing the subscription or its secret.
        Resuming re-arms every trigger from that moment: nothing that happened
        while the subscription was paused is delivered retroactively.


        **Error codes**


        | `error.code` | HTTP | Cause | What to do |

        | --- | --- | --- | --- |

        | `not_found` | 422 | No subscription with this id exists in the calling
        org. | Check the id; a deleted subscription is never returned. |
      operationId: set_webhook_subscription_enabled
      parameters:
        - name: subscription_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Subscription Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookSubscriptionEnabledRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PublicItemResponse_WebhookSubscriptionResponse_
        4XX:
          description: Client error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicErrorResponse'
components:
  schemas:
    WebhookSubscriptionEnabledRequest:
      properties:
        enabled:
          type: boolean
          title: Enabled
          description: >-
            Re-enabling re-arms every trigger from now: nothing that happened
            while the subscription was disabled is delivered retroactively.
      type: object
      required:
        - enabled
      title: WebhookSubscriptionEnabledRequest
    PublicItemResponse_WebhookSubscriptionResponse_:
      properties:
        data:
          $ref: '#/components/schemas/WebhookSubscriptionResponse'
        meta:
          $ref: '#/components/schemas/ResponseMeta'
      type: object
      required:
        - data
      title: PublicItemResponse[WebhookSubscriptionResponse]
    PublicErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: PublicErrorResponse
    WebhookSubscriptionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        url:
          type: string
          title: Url
        enabled:
          type: boolean
          title: Enabled
        custom_field_schema_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Custom Field Schema Ids
        triggers:
          items:
            $ref: '#/components/schemas/WebhookTriggerResponse'
          type: array
          title: Triggers
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - url
        - enabled
        - created_at
      title: WebhookSubscriptionResponse
    ResponseMeta:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
          description: Server timestamp of the response
      type: object
      title: ResponseMeta
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Machine-readable error code
          examples:
            - not_found
        message:
          type: string
          title: Message
          description: Human-readable error message
          examples:
            - Resource not found
      type: object
      required:
        - code
        - message
      title: ErrorDetail
    WebhookTriggerResponse:
      properties:
        trigger_key:
          type: string
          title: Trigger Key
          examples:
            - deal.stage_changed
        predicate:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Predicate
        activated_at:
          type: string
          format: date-time
          title: Activated At
          description: Events that occurred before this timestamp never fire this trigger
      type: object
      required:
        - trigger_key
        - activated_at
      title: WebhookTriggerResponse

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.