Webhooks
Creates a webhook
Create a new webhook.
post/api/v2/webhooks
Request body
Example request
{
"name": "Example hook",
"url": "http://www.example.com",
"secret": "frobozz",
"statements": [
{
"resources": [
"proj/*:env/*:flag/*;testing-tag"
],
"actions": [
"*"
],
"effect": "allow"
}
],
"sign": true,
"on": true,
"tags": []
}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"
}
}
]
}
}