Webhook
PUT https://api.ecartapi.com/api/v2/webhooks/{{id}}
Important information:
The webhook's identifier must exist
Request Body
{"webhook"=>{"url"=>"https://webhook.site/9fabe058-0fa7-4ee8", "active"=>false}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: OK
{"success":true,"webhook":{"id":"5cffede5c932e70bd00adf56","resource":"products","action":"create","url":"http://example","name":"ecarapi.com","active":false,"createdAt":"2019-06-11 13:07:33"}}