Create a system hook
Creates a system hook.
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ”object
The URL to send the request to
Example
http://example.com/hookName of the hook
Description of the hook
Secret token to validate received payloads; this isn’t returned in the response
HMAC signing token used to compute the webhook-signature header. Must be in whsec_
When true, the hook fires on push events
When true, the hook fires on new tags being pushed
Trigger hook on merge requests events
Trigger hook on repository update events
Do SSL verification when triggering the hook
Trigger hook on specified branch only
Filter push events by branch. Possible values are wildcard (default), regex, and all_branches
Custom template for the request payload
URL variables for interpolation
object
Name of the variable
Example
tokenValue of the variable
Example
123Custom headers
object
Name of the header
Example
X-Custom-HeaderValue of the header
Example
valueResponses
Section titled “ Responses ”Created
object
object
object
Whether a secret token is configured
Whether an HMAC signing token is configured
Example
{ "id": 1, "url": "https://webhook.site", "name": "Hook name", "description": "Hook description", "created_at": "2012-05-28T04:42:42-07:00", "organization_id": 1, "alert_status": ":executable", "disabled_until": "2012-05-28T04:42:42-07:00", "url_variables": [ { "token": "secr3t" } ], "push_events_branch_filter": "my-branch-*", "branch_filter_strategy": "wildcard", "custom_webhook_template": "{\"event\":\"{{object_kind}}\"}", "custom_headers": [ { "X-Custom-Header": "value" } ], "token_present": false, "signing_token_present": false}Validation error
Not found
Unprocessable entity