PATCH
/
public
/
v1
/
webhooks
/
webhooks
/
{webhook-id}
Update Webhook
curl --request PATCH \
  --url https://api.topsort.com/public/v1/webhooks/webhooks/{webhook-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "channel": "campaign:create",
  "secret": "t948Lf__j1WNwcAxZpsz8Q",
  "url": "<string>"
}'
{
  "channel": "campaign:create",
  "id": "<string>",
  "marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "secret": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Path Parameters

webhook-id
string
required

Id of the webhook.

Body

application/json
channel
enum<string>

The channel that triggers this webhook.

Available options:
campaign:create,
campaign:update,
campaign:delete,
catalog:feed:download:finish
secret
string

Webhook secret to be used in signature generation.

Maximum length: 32
Example:

"t948Lf__j1WNwcAxZpsz8Q"

url
string<uri>

The URL to send the webhook event to.

Required string length: 1 - 2083

Response

Successful Response

channel
enum<string>
required

The channel that triggers this webhook.

Available options:
campaign:create,
campaign:update,
campaign:delete,
catalog:feed:download:finish
id
string
required

Id of the webhook.

marketplaceId
string<uuid>
required

The marketplace ID.

secret
string
required

Webhook secret to be used in signature generation.

url
string<uri>
required

The URL to send the webhook event to.

Required string length: 1 - 2083