Create Policy
POST
/api/organizations/{organization_id}/policies
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/organizations//policies' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"typeId": "string",
"paid": true,
"units": "days",
"limitSettings": {
"isFixedAmount": true,
"fixedAmount": {
"hours": 0
}
},
"requiresApproval": true,
"carryover": true,
"allowNegativeBalance": true,
"default": true,
"fullDayDuration": 0,
"workerPolicies": [
{
"workerId": "string",
"hoursBalance": 0,
"isIncluded": true
}
]
}'
Response Response Example
{}
Request
Path Params
organization_id
string
required
Body Params application/json