v1

latestOpenAPI 3.1.02026-07-26549156879.0 KB
Timeoff > Policy

Creates a Policy

Creates a Policy

post/api/2026-07-01/resources/timeoff/policies

Request body

namestring required

The name of the policy.

mainboolean

If the policy is the main policy.

descriptionstring

Policy description.

company_idstring

Company ID.

Example request

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

Response

CREATED

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 response

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