Update a Service Hook

PUT /api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/{hook_id}/

Update a service hook.

Path Parameters

organization_id_or_slug (string)
REQUIRED

The ID or slug of the organization the client keys belong to.

project_id_or_slug (string)
REQUIRED

The ID or slug of the project the client keys belong to.

hook_id (string)
REQUIRED

The GUID of the service hook.

Body Parameters

url (string)
REQUIRED

The URL for the webhook.

events (array(string))
REQUIRED

The events to subscribe to.

Scopes

<auth_token> requires one of the following scopes:
  • project:write
Copied
curl https://sentry.io/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/hooks/{hook_id}/ \
 -H 'Authorization: Bearer <auth_token>' \
 -X PUT \
 -H 'Content-Type: application/json' \
 -d '{"url":"https://empowerplant.io/sentry-hook","events":["event.alert","event.created"]}'
RESPONSESCHEMA
Copied
{ "dateCreated": "2018-11-06T21:20:08.143Z", "events": [ "event.alert", "event.created" ], "id": "4f9d73e63b7144ecb8944c41620a090b", "secret": "8fcac28aaa4c4f5fa572b61d40a8e084364db25fd37449c299e5a41c0504cbc2", "status": "active", "url": "https://empowerplant.io/sentry-hook" }