Triggers
Update trigger
Changed onUpdate 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
Example request
{
"inputs": {
"repository": "{repository}"
},
"delivery": {
"webhook_url": "https://example.com/webhook"
}
}Response
Trigger updated.
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
- breaking
- info
endpoint added
- info