cURL
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Record updated
The response is of type object.
object
Was this page helpful?