Authorization: Bearer ********************
{
"title": "string",
"isDefault": true,
"type": "one-time",
"noOfLeaves": 0,
"isCarryForward": true,
"cutoffDate": 0,
"sandwhichPolicy": {
"enabled": true,
"limit": 0,
"limitType": "count",
"limitFrequency": "total",
"addOn": {
"per": "count",
"price": 0,
"allowed": true
}
},
"encashment": {
"enabled": true,
"limit": 0,
"limitType": "count",
"limitFrequency": "total",
"addOn": {
"per": "count",
"price": 0,
"allowed": true
}
}
}
curl --location --request PUT 'https://api.upbooks.io/api/v1/leaves-configuration/' \
--header 'ORGANIZATION-ID: 00000' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "string",
"isDefault": true,
"type": "one-time",
"noOfLeaves": 0,
"isCarryForward": true,
"cutoffDate": 0,
"sandwhichPolicy": {
"enabled": true,
"limit": 0,
"limitType": "count",
"limitFrequency": "total",
"addOn": {
"per": "count",
"price": 0,
"allowed": true
}
},
"encashment": {
"enabled": true,
"limit": 0,
"limitType": "count",
"limitFrequency": "total",
"addOn": {
"per": "count",
"price": 0,
"allowed": true
}
}
}'
{
"message": "string",
"data": null,
"totalCount": 0,
"filteredCount": 0
}