PATCH /v1/webhook-endpoints/{endpointId}
curl --request PATCH \
--url https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"events": [],
"enabled": true
}
'import requests
url = "https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}"
payload = {
"name": "<string>",
"url": "<string>",
"events": [],
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', url: '<string>', events: [], enabled: true})
};
fetch('https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"endpoint": {
"id": "whe_0123456789abcdef0123456789abcdef",
"owner_id": "<string>",
"environment": "sandbox",
"name": "<string>",
"url": "<string>",
"events": [
"payment.credentials_ready"
],
"revision": "<string>",
"enabled": true,
"verified_at": "2023-11-07T05:31:56Z",
"deleted_at": null,
"created_at": "2023-11-07T05:31:56Z",
"schema_version": "2026-10-08",
"consecutive_failures": 0,
"circuit_until": null,
"blocked_reason": null
}
}Endpoints
Update an Endpoint
Change an endpoint’s name, URL or events, or turn delivery on or off.
PATCH
/
v1
/
webhook-endpoints
/
{endpointId}
PATCH /v1/webhook-endpoints/{endpointId}
curl --request PATCH \
--url https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"events": [],
"enabled": true
}
'import requests
url = "https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}"
payload = {
"name": "<string>",
"url": "<string>",
"events": [],
"enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', url: '<string>', events: [], enabled: true})
};
fetch('https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"endpoint": {
"id": "whe_0123456789abcdef0123456789abcdef",
"owner_id": "<string>",
"environment": "sandbox",
"name": "<string>",
"url": "<string>",
"events": [
"payment.credentials_ready"
],
"revision": "<string>",
"enabled": true,
"verified_at": "2023-11-07T05:31:56Z",
"deleted_at": null,
"created_at": "2023-11-07T05:31:56Z",
"schema_version": "2026-10-08",
"consecutive_failures": 0,
"circuit_until": null,
"blocked_reason": null
}
}Send any of
name, url, events and enabled. Fields you leave out don’t change.
- Enabling requires a verified endpoint. Otherwise the request returns
409 WEBHOOK_NOT_VERIFIED. - Changing the URL turns the endpoint off and clears its verification and health state. Verify the new URL, then enable it in a separate request. Changing the URL and enabling in the same request returns
409 WEBHOOK_NOT_VERIFIED. - Pausing with
"enabled": falsestops new events from being queued for this endpoint.
Authorizations
Body
application/json
Required array length:
1 - 16 elementsAvailable options:
payment.credentials_ready, payment.succeeded, payment.failed, card.saved, card.deleted, card_enrollment.completed, card_enrollment.failed, card_enrollment.cancelled, card_enrollment.expired, mandate.created, mandate.creation_failed, mandate.creation_cancelled, mandate.creation_expired, mandate.paused, mandate.resumed, mandate.cancelled, mandate.expired, quote.request_failed