Webhooks
Update webhook
Update a webhook's settings. Updating webhook settings uses a JSON patch representation of the desired changes. To learn more, read Updates.
patch/api/v2/webhooks/{id}
Path parameters
idstring string required
The ID of the webhook to update
The ID of the webhook to update
Request body
Example request
[
{
"op": "replace",
"path": "/exampleField",
"value": "new example value"
}
]Response
Webhook response
Example response
{
"_id": "57be1db38b75bf0772d11384",
"name": "Example hook",
"url": "http://www.example.com",
"secret": "frobozz",
"statements": [
{
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
],
"on": true,
"tags": [
"examples"
],
"_access": {
"denied": [
{
"reason": {
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
}
],
"allowed": [
{
"reason": {
"resources": [
"proj/*:env/*;qa_*:/flag/*"
],
"actions": [
"*"
],
"effect": "allow"
}
}
]
}
}