v1

latestOpenAPI 3.0.32026-07-2415128381.3 KB
Webhooks

Update a webhook

Updates a configured webhook in the project. Requires Manage settings admin right.

Requires <code>write_webhooks</code> OAuth access scope.

put/projects/{project_id}/webhooks/{webhook_id}

Path parameters

project_idstring required

A unique project identifier

webhook_idstring required

A unique identifier of the webhook.

Request body

urlstring

Update the URL to your endpoint.

branchstring

You can limit the usage of the webhook to a specific branch by specifying the name of the branch as a string. If you pass <code>null</code> or skip this attribute, the webhook will be applied to all branches.

eventsstring[]

Update the list of subscribed events. Possible values are <code>project.imported</code>, <code>project.exported</code>, <code>project.deleted</code>, <code>project.snapshot</code>, <code>project.languages.added</code>, <code>project.language.removed </code>, <code>project.language.settings_changed</code>, <code>project.key.added</code>, <code>project.key.modified</code>, <code>project.keys.deleted</code>, <code>project.key.comment.added</code>, <code>project.translation.updated</code>, <code>project.translation.proofread</code>, <code>project.contributor.added</code>, <code>project.contributor.deleted</code>, <code>project.task.created</code>, <code>project.task.closed</code>, <code>project.task.deleted</code>, <code>project.task.language.closed</code>, <code>project.branch.added</code>, <code>project.branch.deleted</code>, <code>project.branch.merged</code>, <code>team.order.created</code>, <code>team.order.completed</code>, <code>team.order.deleted</code>.

Response

OK

project_idstring