Skip to Content
StarsellDocs
API referenceWebhooks

Update a webhook

PATCH
/stores/{storeId}/webhooks/{webhookId}

Change a webhook, or turn it on or off. Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.

Authorization

storeKey
headerAuthorizationBearer <vtk_...>

A store API and MCP key

Path Parameters

storeId*string

The store id

webhookId*string

The webhook id

Header Parameters

Idempotency-Key?string

Makes a retry safe: the first call with this key runs, and a repeat within 24 hours (same path and body) gets the same answer back without running again. Per store. A call that failed keeps nothing, so its repeat runs again. The same key with another path or body is refused with 422.

Match^[!-~]+$
Length1 <= length <= 255

Request Body

application/json
  1. body
url?string

https, reaching a public address

events?array<>
description?string
active?boolean

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://starsell.app/api/v1/stores/string/webhooks/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "url": "string",    "events": [      "string"    ],    "description": "string",    "active": true,    "failing_since": "2019-08-24T14:15:22Z",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}