curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/webhooks/subscribers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"subscriber": {
"active": true,
"subscriptions": [
"order.created",
"order.completed",
"product.updated"
],
"url": "https://www.url.com/"
}
}'
{
"data": {
"id": "12",
"type": "subscriber",
"attributes": {
"url": "https://www.url12.com/",
"active": true,
"subscriptions": [
"*"
],
"created_at": "2022-11-08T19:36:00.130Z",
"updated_at": "2022-11-08T19:36:00.130Z"
}
}
}
Updates a Webhook Subscriber
curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/webhooks/subscribers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"subscriber": {
"active": true,
"subscriptions": [
"order.created",
"order.completed",
"product.updated"
],
"url": "https://www.url.com/"
}
}'
{
"data": {
"id": "12",
"type": "subscriber",
"attributes": {
"url": "https://www.url12.com/",
"active": true,
"subscriptions": [
"*"
],
"created_at": "2022-11-08T19:36:00.130Z",
"updated_at": "2022-11-08T19:36:00.130Z"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Record updated
The response is of type object
.
Was this page helpful?