Update Webhook
Update a webhook endpoint.
Omitted fields keep their current value. The URL can't be changed; create a new endpoint for a new URL. Sending headers replaces every custom header.
Authorization
api_key In: header
Path Parameters
ID of the webhook endpoint
Request Body
application/json
The fields to change
The fields to change
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PATCH "https://example.com/shipos/webhooks/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "url": "string", "description": "string", "contact_email": "string", "paused": true, "active": true, "status": "active", "event_patterns": [ "string" ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "health": { "consecutive_failures": 0.1, "last_successful_at": "2019-08-24T14:15:22Z" }, "circuit": { "opened_at": "2019-08-24T14:15:22Z", "reason": "string", "probe_at": "2019-08-24T14:15:22Z" }, "supported_actions": [ { "action": "VIEW_LOGS" } ], "last_delivery": { "event_type": "string", "status": "PENDING", "delivered_at": "2019-08-24T14:15:22Z" }}