Update a webhook endpoint
Saves the endpoint whole: its address, its events and its note. enabled stays as it is when left out. Switching an endpoint on is also what starts one again that Shoply had paused for failing. Its signing secret stays the same.
Needs the webhooks.write permission (Change Webhooks).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Headers
A word of your own for this one change, up to 180 letters, digits, dots, dashes, underscores and colons. Sent again with the same key, the request is not carried out twice: the first answer comes back, with Idempotent-Replay: true.
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
The webhook endpoint.
Body
The https address deliveries are posted to. It cannot point at a private network, and it may name port 80, 443, 8080 or 8443.
"https://example.com/webhooks/shoply"
The events it is sent, by name, or ["*"] for every event there is and every one there will be.
A note for whoever manages the store, up to 160 characters.
Whether events are sent to it. Switched off, nothing is sent, and what happens meanwhile is not kept for it.

