Triggers

Update a trigger.

patch/api/triggers/{trigger_id}

Request

  • Base URL: https://instance-name-be.glean.com
  • URL: https://instance-name-be.glean.com/api/triggers/{trigger_id}
  • Auth: HTTP bearer

Path parameters

trigger_idstring required

ID of the trigger to update.

Request body

status'ENABLED' | 'DISABLED'

Current trigger lifecycle state.

descriptionstring

Optional note describing this trigger.

inputsobject

Values for the preset's inputs.

Example request

{
  "inputs": {
    "repository": "{repository}"
  },
  "delivery": {
    "webhook_url": "https://example.com/webhook"
  }
}

Response

Trigger updated.

request_idstring required

Platform-generated request ID for support correlation.

Example response

{
  "trigger": {
    "trigger_id": "trigger_test_123",
    "preset_id": "GITHUB_1",
    "description": "Reviews I am tagged on, sent to my team's review channel",
    "status": "ENABLED",
    "inputs": {
      "repository": "acme/payments-api"
    },
    "delivery": {
      "webhook_url": "https://customer.app/webhook",
      "auth": {
        "secret": "secret_test_123"
      }
    }
  }
}

Changes

    • breaking

      added the pattern ^https:// to the request property /

    • info

      the // response's property pattern ^https:// was added for the status

    • info

      endpoint added