Triggers

Get trigger preset

Changed on

Retrieve a single trigger preset by id.

get/api/trigger-presets/{preset_id}

Request

  • Base URL: https://instance-name-be.glean.com
  • URL: https://instance-name-be.glean.com/api/trigger-presets/{preset_id}
  • Auth: HTTP bearer

Path parameters

preset_idstring required

ID of the preset to retrieve.

Response

Successful response.

request_idstring required

Platform-generated request ID for support correlation.

Example response

{
  "trigger_preset": {
    "preset_id": "GITHUB_1",
    "datasource": "github",
    "display_name": "Review requested from me",
    "description": "A review is requested from the trigger creator on a pull request",
    "inputs": [
      {
        "field": "repository",
        "type": "PICKLIST",
        "display_name": "Repository",
        "values": [
          {
            "value": "acme/payments-api",
            "display_name": "acme/payments-api"
          }
        ]
      }
    ]
  }
}

Changes

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added subschema #2 to the response property allOf list for the response status

    • info

      endpoint added