Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PUT
/api-v1/vacation
curl \
--request PUT 'https://wyzio.app/api-v1/vacation' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '{"id":42,"employeeId":42,"fromDate":"string","toDate":"string","type":"VACATION","hours":42.0,"comment":"string"}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
{
"id": 42,
"employeeId": 42,
"fromDate": "string",
"toDate": "string",
"type": "VACATION",
"hours": 42.0,
"comment": "string"
}
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"freshRow": {},
"freshData": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}