DELETE /v1/webhook-endpoints/{endpointId}
curl --request DELETE \
--url https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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));{
"deleted": true
}Endpoints
Delete an Endpoint
Stop sending events to an endpoint and remove it.
DELETE
/
v1
/
webhook-endpoints
/
{endpointId}
DELETE /v1/webhook-endpoints/{endpointId}
curl --request DELETE \
--url https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.api.prava.space/v1/webhook-endpoints/{endpointId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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));{
"deleted": true
}Deletes the endpoint and returns
{ "deleted": true }. Pending deliveries to it are cancelled, and it receives no further events. Its past events stay available through List events for 30 days.
This request has no body, so omit Content-Type: application/json.