Webhooks

Add user's webhook

Add user's webhook

post/webhooks/user

Request

Request body

namestring required
descriptionstring
urlstring uri required
secretstring
content_typestring
templatestring
activeboolean required
event_kindsEventKindId[] required

Example request

{
  "name": "webhook1",
  "description": "description",
  "url": "http://url",
  "secret": "123abc",
  "content_type": "application/json",
  "template": "{\"text\": \"Package {{ .Package.Name }} version {{ .Package.Version }} released! {{ .Package.URL }}\"}"
}

Response

The request has succeeded and has led to the creation of a resource

Changes

No recorded changes to this operation across all 1 revision of this API.