WebHooks
Update WebHook
Update an existing WebHook record.
PUT
Update WebHook
Updates an existing WebHook record. You must include the
Id of the record to update along with all required fields.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the WebHook-Edit role.Enums
eWebhookAction — Action values
eWebhookAction — Action values
Request Body
Required Fields
ID of the location that owns this webhook. Events raised in this location trigger it, and a webhook registered on a network parent location also receives events from that parent’s child locations..
Display name used to identify this webhook in the location’s webhook list; it is not sent to the endpoint..
The single event that triggers this webhook, such as CoworkerCreate, BookingCreate or CoworkerInvoicePaid. Only one action per webhook, so create a separate record for each event you need. Defaults to None, which never fires, so always set this explicitly..
Endpoint that receives the HTTP POST JSON payload when the webhook fires, up to 1024 characters. It must start with http or https; any other value records an error and deactivates the webhook on the first delivery attempt..
Optional Fields
Optional free-text note describing the webhook’s purpose. It is not shown in the admin form and is not sent to the endpoint..
Whether the webhook is enabled and will fire when its action occurs. Set false to pause delivery without deleting the record. Nexudus sets it to false automatically once ErrorCount passes 10, or when the URL does not start with http..
Code Examples
Response
200
Example Response
400
Example Response