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

# Pause a rule or turn it back on

> Only `is_active`. The cursor and the watermark stay where they are, so a rule that was off for a week does not deliver that week when it comes back on.



## OpenAPI

````yaml /openapi.json patch /v1/integrations/{id}/rules/{rule_id}
openapi: 3.1.0
info:
  title: Ziplined API
  version: 1.0.0
  description: >-
    LinkedIn engagement data about people, companies and posts. The workspace
    comes from the credential; lists page with `limit` and `next_cursor`.
servers:
  - url: https://api.ziplined.io
    description: Production
security: []
tags:
  - name: People
    description: The people in your workspace, and what you sent them.
  - name: Companies
    description: The companies those people work at.
  - name: Posts
    description: Your own posts and their numbers.
  - name: Engagements
    description: One act by one person on one post.
  - name: Insights
    description: Period against period, and the series behind it.
  - name: Audiences
    description: Named lists of people, and their membership.
  - name: Sources
    description: What your radar collects from.
  - name: Integrations
    description: Webhook and Slack destinations, and routing rules.
paths:
  /v1/integrations/{id}/rules/{rule_id}:
    patch:
      tags:
        - Integrations
      summary: Pause a rule or turn it back on
      description: >-
        Only `is_active`. The cursor and the watermark stay where they are, so a
        rule that was off for a week does not deliver that week when it comes
        back on.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
        - schema:
            type: string
            format: uuid
          required: true
          name: rule_id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RulePatch'
      responses:
        '200':
          description: The rule as it now stands.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/RoutingRule'
                required:
                  - data
        '400':
          description: A filter value is invalid, or this resource has no such filter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Not included in this plan, or a usage cap was exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Wrong workspace, or the credential lacks the required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or it does not belong to this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RulePatch:
      type: object
      properties:
        is_active:
          type: boolean
      required:
        - is_active
      additionalProperties: false
    RoutingRule:
      type: object
      properties:
        id:
          type: string
        integration_id:
          type: string
        name:
          type: string
        event:
          type: string
          example: new_engagement
        is_active:
          type: boolean
        audience_id:
          type: string
          nullable: true
          description: Null is everyone.
        filter:
          type: object
          nullable: true
          additionalProperties:
            nullable: true
        min_interval_minutes:
          type: number
          description: >-
            How long this rule waits between two messages: 0 immediate, 60
            hourly, 1440 daily.
        send_hour_utc:
          type: number
          nullable: true
          description: >-
            The whole hour in UTC after which a daily send may go out. Only used
            at 1440.
        watermark_at:
          type: string
        created_at:
          type: string
      required:
        - id
        - integration_id
        - name
        - event
        - is_active
        - audience_id
        - filter
        - min_interval_minutes
        - send_hour_utc
        - watermark_at
        - created_at
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error

````

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