Update a webhook for a workspace
Changed onUpdates the specified webhook subscription.
The following properties can be mutated:
- description
- url
- secret
- active
- events
The hook's secret is used as a key to generate the HMAC hex digest sent in the X-Hub-Signature header at delivery time. This signature is only generated when the hook has a secret.
Set the hook's secret by passing the new value in the secret field . Passing a null value in the secret field will remove the secret from the hook. The hook's secret can be left unchanged by not passing the secret field in the request.
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/workspaces/{workspace}/hooks/{uid}
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: webhook
- or HTTP basic
- or API key in header Authorization
Path parameters
This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.
The webhook's id.
Response
The webhook subscription object.
Changes
- breaking
added the new path request parameter
uid - breaking
added the new path request parameter
workspace - info
api operation id
update_workspace_hookwas added - info
added the optional property
/to the response with the status - info
the response optional property
/became read-only for the status - info
the response optional property
/became read-only for the status - info
the response optional property
/became read-only for the status - info
the response optional property
/became read-only for the status
- breaking
- warning
added the new
pipeline:span_createdenum value to the//response property for the response status - warning
added the new
pullrequest:pushenum value to the//response property for the response status
- warning