Add a webhook
POST https://manage.kontent.ai/v2/projects/:environment_id/webhooks-vnext
Add a webhook to a given environment.
Request Body
{"name"=>"<string>", "secret"=>"<string>", "delivery_triggers"=>{"slot"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "events"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "content_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "content_item"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "taxonomy"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "asset"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "language"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, "url"=>"<url>", "id"=>"<uuid>", "headers"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "enabled"=>"<boolean>", "last_modified"=>"<dateTime>", "health_status"=>"<string>"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"name":"Example webhook","secret":"fNp+QH1sE+fSXoNFlQ4kwiTJz0er2L34gFItAAVHws8=","delivery_triggers":{"slot":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"events":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"content_type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"content_item":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"taxonomy":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"asset":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"language":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"url":"https://example.com/webhook","id":"5df74e27-1213-484e-b9ae-bcbe90bd5990","headers":[{"key":"api-key","value":"Secret API key value"},{"key":"Custom-key","value":"Custom header value with alphanum3r1c characters."}],"enabled":true,"last_modified":"2023-09-18T09:29:08.4356117Z","health_status":"working"}