curl --request PATCH \
--url http://{defaultHost}/api/v2/platform/webhooks/subscribers/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subscriber": {
"url": "https://www.url.com/",
"active": true,
"subscriptions": [
"order.created",
"order.completed",
"product.updated"
]
}
}
'{
"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": {
"url": "https://www.url.com/",
"active": true,
"subscriptions": [
"order.created",
"order.completed",
"product.updated"
]
}
}
'{
"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.
Was this page helpful?