PUT
/
webhooks
/
{id}
curl --request PUT \
  --url https://api.loopreturns.com/api/v1/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization: <api-key>' \
  --data '{
  "topic": "return",
  "trigger": "return.created",
  "url": "https://example.com/webhook",
  "status": "active"
}'
This response has no body data.

Authorizations

X-Authorization
string
header
required

Path Parameters

id
integer
required

The webhook's unique identifier.

Body

application/json
topic
enum<string>
required

The webhook's topic.

Available options:
return,
label,
restock
trigger
enum<string>
required

The condition which triggers the webhook.

Available options:
return.created,
return.updated,
return.closed,
label.created,
label.updated,
restock.requested
url
string
required

The webhook's URL.

status
enum<string>

The webhook's status.

Available options:
active,
inactive