Update webhook endpoint
curl --request PATCH \
--url https://api-sandbox.superbank.co/v0/webhooks/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "https://your-app.com/webhooks/superbank-v2",
"active": true
}
'import requests
url = "https://api-sandbox.superbank.co/v0/webhooks/{id}"
payload = {
"url": "https://your-app.com/webhooks/superbank-v2",
"active": True
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://your-app.com/webhooks/superbank-v2', active: true})
};
fetch('https://api-sandbox.superbank.co/v0/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Webhooks
Update webhook endpoint
Update an existing webhook endpoint configuration.
PATCH
/
v0
/
webhooks
/
{id}
Update webhook endpoint
curl --request PATCH \
--url https://api-sandbox.superbank.co/v0/webhooks/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "https://your-app.com/webhooks/superbank-v2",
"active": true
}
'import requests
url = "https://api-sandbox.superbank.co/v0/webhooks/{id}"
payload = {
"url": "https://your-app.com/webhooks/superbank-v2",
"active": True
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://your-app.com/webhooks/superbank-v2', active: true})
};
fetch('https://api-sandbox.superbank.co/v0/webhooks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Authorizations
Path Parameters
Webhook endpoint ID
Example:
"wh_abc123"
Body
application/json
Response
Webhook endpoint updated successfully
The response is of type object.