PUT
/
webhooks
/
{id}
Update Webhook
curl --request PUT \
  --url https://api.loopreturns.com/api/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "topic": "return",
  "trigger": "return.created",
  "url": "https://example.com/webhook",
  "status": "active"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

OAuth 2.0 authorization

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,
label.request,
giftcard,
happy.returns.shipment
Examples:

"return"

trigger
enum<string>
required

The condition which triggers the webhook.

Available options:
return.created,
return.updated,
return.closed,
label.created,
label.updated,
restock.requested,
label.request.issued,
label.request.cancelled,
giftcard.requested,
shipment.processed
Examples:

"return.created"

url
string
required

The webhook's URL.

Examples:

"https://example.com/webhook"

status
enum<string>

The webhook's status.

Available options:
active,
inactive

Response

No Content