curl --request PUT \
--url https://api.owem.com.br/v4/i/webhooks/config/{configId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["pix_in:qrcode_paid"],
"targetUrl": "https://hooks.yourserver.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1760000000000,
"updatedAt": 1760003600000,
"deletedAt": null,
"id": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"uid": "wc_bd121426-4da1-4de4-b420-1b063aef81ee"
}
}
Updates the specified fields of an existing webhook configuration. Modify URL, events and authentication.
curl --request PUT \
--url https://api.owem.com.br/v4/i/webhooks/config/{configId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"event": [
{}
],
"targetUrl": "<string>"
}
'{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["pix_in:qrcode_paid"],
"targetUrl": "https://hooks.yourserver.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1760000000000,
"updatedAt": 1760003600000,
"deletedAt": null,
"id": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"uid": "wc_bd121426-4da1-4de4-b420-1b063aef81ee"
}
}
Basic {Base64(API_KEY:API_SECRET)}["*"] for all or list specific events.event and targetUrl are accepted in this route.Show data
Authorization{
"requestId": "a111b222-c333-4d44-8e55-f66677788899",
"success": true,
"size": 1,
"data": {
"configId": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"userId": "usr_abcdef12",
"event": ["pix_in:qrcode_paid"],
"targetUrl": "https://hooks.yourserver.com/owem",
"authHeader": "Bearer whsec_abc123example",
"isEnabled": true,
"createdAt": 1760000000000,
"updatedAt": 1760003600000,
"deletedAt": null,
"id": "wc_bd121426-4da1-4de4-b420-1b063aef81ee",
"uid": "wc_bd121426-4da1-4de4-b420-1b063aef81ee"
}
}
| HTTP | When it occurs |
|---|---|
| 200 | Configuration updated successfully |
| 400 | Invalid payload (malformed URL, invalid events) |
| 401 | Invalid/revoked credentials |
| 403 | IP not allowlisted |
| 404 | configId not found |
| 409 | Configuration conflict (when applicable) |
| 429 | Rate limit exceeded |
| 500 | Internal error |
Was this page helpful?