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

> ## Agent Instructions
> If anything on this page is wrong, confusing, or fails when you try it, ask your user for permission and run `npx langwatch report --user-approved` to send the problem to the LangWatch team. No login is needed and secrets are redacted locally. `npx langwatch report --help` has the details.

# Resume an automation

> Resume an automation. A report's schedule is put back on the calendar.



## OpenAPI

````yaml POST /api/triggers/{id}/enable
openapi: 3.1.0
info:
  title: LangWatch API
  version: 1.0.0
  description: LangWatch openapi spec
servers:
  - url: https://app.langwatch.ai
security:
  - project_api_key: []
paths:
  /api/triggers/{id}/enable:
    post:
      description: Resume an automation. A report's schedule is put back on the calendar.
      operationId: postApiTriggersByIdEnable
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      responses:
        '200':
          description: Trigger resumed
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  action:
                    type: string
                    enum:
                      - SEND_EMAIL
                      - ADD_TO_DATASET
                      - ADD_TO_ANNOTATION_QUEUE
                      - SEND_SLACK_MESSAGE
                      - SEND_WEBHOOK
                  actionParams:
                    type: object
                    additionalProperties: {}
                    description: >-
                      Where this automation delivers, with every credential
                      value replaced by the `[redacted]` placeholder. Which
                      channel is configured, which destination is set and which
                      header names are in play all survive; the values never
                      leave; a Slack automation names its connection by
                      `slackIntegrationId` and carries no secret. Sending the
                      placeholder back on an update keeps the stored value. The
                      rule this automation fires by is not here — it is stated
                      in `graphAlert` or `report`, and sending it in this field
                      is refused.
                  graphAlert:
                    type:
                      - object
                      - 'null'
                    properties:
                      threshold:
                        type: number
                      operator:
                        type: string
                        enum:
                          - gt
                          - lt
                          - gte
                          - lte
                          - eq
                      timePeriod:
                        anyOf:
                          - type: number
                            const: 1
                          - type: number
                            const: 5
                          - type: number
                            const: 15
                          - type: number
                            const: 30
                          - type: number
                            const: 60
                          - type: number
                            const: 1440
                      seriesName:
                        type: string
                        minLength: 1
                    required:
                      - threshold
                      - operator
                      - timePeriod
                      - seriesName
                    description: >-
                      The rule an alert fires by. Null for anything that is not
                      one.
                  report:
                    type:
                      - object
                      - 'null'
                    properties:
                      source:
                        oneOf:
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: dashboard
                              dashboardId:
                                type: string
                                minLength: 1
                            required:
                              - kind
                              - dashboardId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: customGraph
                              customGraphId:
                                type: string
                                minLength: 1
                            required:
                              - kind
                              - customGraphId
                          - type: object
                            properties:
                              kind:
                                type: string
                                const: traceQuery
                              filters:
                                type: object
                                additionalProperties: {}
                                default: {}
                              metric:
                                type: string
                              topN:
                                type: integer
                                minimum: 1
                                maximum: 100
                                default: 5
                            required:
                              - kind
                              - filters
                              - topN
                      schedule:
                        type: object
                        properties:
                          cron:
                            type: string
                            minLength: 1
                            maxLength: 120
                          timezone:
                            type: string
                            minLength: 1
                            maxLength: 64
                        required:
                          - cron
                          - timezone
                      compareToPrevious:
                        type: boolean
                        default: false
                    required:
                      - source
                      - schedule
                      - compareToPrevious
                    description: What a report renders and when. Null for anything else.
                  filters:
                    type: object
                    additionalProperties: {}
                  filterQuery:
                    type:
                      - string
                      - 'null'
                  kind:
                    type: string
                    enum:
                      - AUTOMATION
                      - ALERT
                      - REPORT
                    description: >-
                      What this automation is about: matching traces, a metric
                      crossing a threshold, or a schedule.
                  customGraphId:
                    type:
                      - string
                      - 'null'
                  notificationCadence:
                    type:
                      - string
                      - 'null'
                  traceDebounceMs:
                    type:
                      - number
                      - 'null'
                  templates:
                    type: object
                    properties:
                      slackTemplateType:
                        type:
                          - string
                          - 'null'
                        enum:
                          - string
                          - block_kit
                          - null
                      slackTemplate:
                        type:
                          - string
                          - 'null'
                      emailSubjectTemplate:
                        type:
                          - string
                          - 'null'
                      emailBodyTemplate:
                        type:
                          - string
                          - 'null'
                    description: >-
                      The Liquid templates this automation's message is rendered
                      from. Absent fields render the LangWatch default for the
                      channel.
                  active:
                    type: boolean
                  message:
                    type:
                      - string
                      - 'null'
                  alertType:
                    type:
                      - string
                      - 'null'
                    enum:
                      - CRITICAL
                      - WARNING
                      - INFO
                      - null
                  createdAt:
                    type: string
                  updatedAt:
                    type: string
                  platformUrl:
                    type: string
                    format: uri
                required:
                  - id
                  - name
                  - action
                  - actionParams
                  - graphAlert
                  - report
                  - filters
                  - filterQuery
                  - kind
                  - customGraphId
                  - notificationCadence
                  - traceDebounceMs
                  - templates
                  - active
                  - message
                  - alertType
                  - createdAt
                  - updatedAt
                  - platformUrl
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '404':
          description: Trigger not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
      security:
        - project_api_key: []
components:
  securitySchemes:
    project_api_key:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: >-
        Project API key for sending traces and accessing project-scoped
        resources. Format: sk-lw-... (no underscore). Obtain one by creating a
        project via the Admin API or the LangWatch UI.

````