curl --request PUT \
--url https://api.hyperline.co/v1/webhooks/endpoints/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Production webhook endpoint",
"url": "https://example.com/webhook",
"rate_limit": 123,
"event_types": [
"customer.created",
"customer.updated"
]
}'
{
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"description": "Production webhook endpoint",
"url": "https://example.com/webhook",
"rate_limit": 123,
"event_types": [
"customer.created",
"customer.updated"
],
"created_at": "2024-01-20T16:04:11Z"
}
Update an existing webhook endpoint.
curl --request PUT \
--url https://api.hyperline.co/v1/webhooks/endpoints/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"description": "Production webhook endpoint",
"url": "https://example.com/webhook",
"rate_limit": 123,
"event_types": [
"customer.created",
"customer.updated"
]
}'
{
"id": "ep_1srOrx2ZWZBpBUvZwXKQmoEYga2",
"description": "Production webhook endpoint",
"url": "https://example.com/webhook",
"rate_limit": 123,
"event_types": [
"customer.created",
"customer.updated"
],
"created_at": "2024-01-20T16:04:11Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
Was this page helpful?