Update a webhook

Path Params
integer
required
1 to 2147483647

The webhook id

Body Params

Partial update; omitted webhook settings are preserved.

object | string,null

An object containing any custom headers that should be sent in the webhook POST request. If you want a unique request id header to be sent, create a header with a value of "{{ UUID }}". When the webhook is sent, this will be replaced with a unique UUID for each request.

array | string,null

The events this webhook receives. Null — the default, and what every webhook created before this field existed holds — means every event.

Event names follow the webhook's configured API version. Both legacy v2 and current v3 spellings are accepted when configuring enabled_events.

boolean

Whether or not the webhook should be disabled. If set to true, the webhook will be disabled and no longer send POST requests. If set to false, the webhook will be enabled and will send POST requests. If you omit this field, the webhook will not change its disabled state.

boolean
Defaults to false

Whether or not to use Mutual TLS when sending the webhook POST request. This is an additional security measure that requires the receiving service to present a valid TLS certificate and to verify our API server's certificate before accepting the request.

string | null

The OAuth client_secret Vision presents when requesting an access token from oauth_config.token_url. Write-only: it is stored encrypted and is never returned by this API. To set or rotate it, provide the new secret. To remove it, set this to null. To leave it unchanged, omit this field.

TeamWebhookOAuthConfig | string,null

OAuth 2.0 client credentials configuration. When set, Vision obtains an access token from the configured token endpoint and presents it on the webhook request. Null means the webhook is delivered without OAuth.

This is independent of the truepic-signature payload signature and of mutual TLS — any combination of the three can be used together.

string | null

The secret used for authenticating the webhooks. When we send webhooks to your endpoint, we will add a truepic-signature header to those requests that we generate using this secret. When your endpoint receives a webhook POST request, you can then verify that the request was signed with this secret to ensure that the request is from us. If you want to remove the secret, set this to null. If you want to set a new secret, provide the new secret string. If you don't want to change the secret, omit this field.

number

The id of the team. Each team can have only one webhook.

url

The url that the webhook POST request is sent to.

string
enum
Defaults to v3

The API version used to send the webhook POST request. Determines the terminology (v2 or v3) sent.

Allowed:
Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json