Creates a new absence entry. Returns 200 on success, or 400 if validation fails.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Body
Required
-
Entity ID. If negative value, a new entity will be created
-
Employee (staff) ID
-
Start date (format dd/MM/yyyy). Must not fall on a weekend, holiday, or locked accounting period
-
End date (format dd/MM/yyyy). Must not be before the start date
-
Absence type
Values are
VACATION,ACCIDENT,SICKNESS,MOVING_HOUSE,MARRIAGE,CHILD_BIRTH,MOURNING,ARMY_CIVIL_PROTECTION, orOTHER. -
Number of hours
-
Comment
PUT
/api-v1/vacation
curl \
--request PUT 'https://wyzio.app/api-v1/vacation' \
--header "Content-Type: application/json" \
--data '{"id":12345678,"employeeId":12345678,"fromDate":"01/06/2026","toDate":"03/06/2026","type":"VACATION","hours":24.0,"comment":"Approved by manager"}'
Request examples
# Headers
# Payload
{
"id": 12345678,
"employeeId": 12345678,
"fromDate": "01/06/2026",
"toDate": "03/06/2026",
"type": "VACATION",
"hours": 24.0,
"comment": "Approved by manager"
}
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}