v1
latestOpenAPI 3.1.02026-07-26294215839.4 KBWebhooks
Public API
Update Webhook
Performs a full replacement update of a webhook — all request body fields overwrite existing values, so omitted optional fields revert to defaults. The monitorFields array must be non-empty when the webhook's events include employee.updated or employee_with_fields.updated (the default event set includes employee_with_fields.updated). The private key is not regenerated on update. Use List Webhooks to discover webhook IDs.
OAuth Scopes: webhooks, webhooks.write
put/api/v1/webhooks/{id}
Path parameters
idinteger required
The webhook ID to update.
Request body
Example request
{
"name": "My new webhook",
"monitorFields": [
"firstName",
"lastName"
],
"postFields": {
"firstName": "Name",
"lastName": "Surname",
"dateOfBirth": "DOB"
},
"format": "json",
"events": [
"employee.created",
"employee.updated",
"employee.deleted"
]
}Response
The updated webhook.
Example response
{
"id": "4",
"name": "Example Webhook",
"created": "2021-09-20 22:38:01",
"lastSent": "2021-09-20 22:38:01",
"monitorFields": [
"firstName",
"lastName"
],
"postFields": {
"firstName": "Name",
"lastName": "Surname",
"dateOfBirth": "DOB"
},
"url": "https://www.example.com",
"format": "json",
"events": [
"employee_with_fields.created",
"employee_with_fields.updated"
],
"errors": [
{
"error": "Permission denied to the following fields",
"postFields": [
{
"id": 2,
"name": "lastName"
}
]
}
]
}