Triggers
Search events for a trigger preset
Changed onSearch recent content events an unsaved trigger built from this preset would match, to preview it before creating the trigger. Read-only — no trigger is created and no webhook delivery is made. Covers the last seven days.
post/api/trigger-presets/{preset_id}/events/search
Request
- Base URL: https://instance-name-be.glean.com
- URL: https://instance-name-be.glean.com/api/trigger-presets/{preset_id}/events/search
- Auth: HTTP bearer
Path parameters
preset_idstring required
ID of the preset to preview.
Request body
Example request
{
"inputs": {
"repository": "{repository}"
},
"page_size": 10
}Response
Successful response.
Example response
{
"results": [
{
"event_type": "DOCUMENT_CHANGE",
"datasource": "GITHUB",
"reason": "REVIEW_REQUESTED",
"doc_type": "pull"
}
]
}Changes
- warning
added the new
WEBHOOK_CREATEDenum value to the//response property for the response status
- warning
- info
endpoint added
- info