Menu
Update Webhook
Update a webhook
PATCH
/hooks/projects/{projectId}/{id}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Update Webhook action (under Webhooks).
- Fill in the fields below, then reference the result from later steps as
{{updateWebhook.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"name": "string",
"url": "string",
"dataset": "string",
"description": "string",
"rule": {
"on": [
"create"
],
"filter": "string",
"projection": "string"
},
"apiVersion": "string",
"httpMethod": "POST",
"includeDrafts": false,
"includeAllVersions": false,
"headers": {},
"secret": "string",
"isDisabledByUser": false
}
Response
Returns 200 with a oneOf. Read it in later steps with {{updateWebhook.response.data.<field>}}.
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?