v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Webhooks

Timeoff > Policy > Updates

Subscription_type: timeoff/policy/update

postWebhookWebhooks > Timeoff > Policy > Updates

Payload

idstring required

The policy id.

namestring required

Policy name.

mainboolean

Is the main policy? It will return true if it's the main policy if not it will return false.

company_idstring required

The company id.

descriptionstring

The policy description.

Example payload

{
  "id": "1",
  "name": "Policy for remotes",
  "main": true,
  "company_id": "1",
  "description": "This policy will apply only for remote employees"
}

Response

Return a 200 status to indicate that the data was received successfully