Credit
Profile
Leaderboard
Webhook
Webhook Secret
Webhook
Update Webhook
Update an existing webhook
PUT
/
webhook
/
{id}
Copy
curl --request PUT \
--url https://api.openformat.tech/v1/webhook/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"url": "https://api.example.com/webhook",
"events": [
"transaction"
]
}'
Copy
{
"status": "success",
"webhook": {
"id": 123,
"url": "https://api.example.com/webhook",
"events": [
"transaction"
],
"disabled": true,
"disabled_at": "2024-01-23 01:23:45.55338+00",
"created_at": "2024-01-23 01:23:45.55338+00"
}
}
Copy
{
"status": "success",
"webhook": {
"id": 123,
"url": "https://api.example.com/webhook",
"events": [
"transaction"
],
"disabled": true,
"disabled_at": "2024-01-23 01:23:45.55338+00",
"created_at": "2024-01-23 01:23:45.55338+00"
}
}
Authorizations
Path Parameters
Webhook id
Example:
"123"
Body
application/json
Response
200
application/json
Updated webhook
The response is of type object
.
Copy
curl --request PUT \
--url https://api.openformat.tech/v1/webhook/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"url": "https://api.example.com/webhook",
"events": [
"transaction"
]
}'
Copy
{
"status": "success",
"webhook": {
"id": 123,
"url": "https://api.example.com/webhook",
"events": [
"transaction"
],
"disabled": true,
"disabled_at": "2024-01-23 01:23:45.55338+00",
"created_at": "2024-01-23 01:23:45.55338+00"
}
}
Assistant
Responses are generated using AI and may contain mistakes.