Create a time off policy

POST {{baseUrl}}/v1/companies/:company_uuid/time_off_policies

Create a time off policy

scope: time_off_policies:write

Request Body

{"name"=>"<string>", "policy_type"=>"<string>", "accrual_method"=>"<string>", "accrual_rate"=>"<float>", "accrual_rate_unit"=>"<float>", "paid_out_on_termination"=>"<boolean>", "accrual_waiting_period_days"=>"<integer>", "carryover_limit_hours"=>"<float>", "max_accrual_hours_per_year"=>"<float>", "max_hours"=>"<float>"}

HEADERS

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;uuid&quot;:&quot;3f746cd0-dd08-408f-b712-8180c7c621e9&quot;,&quot;company_uuid&quot;:&quot;de83cff2-8e7a-448e-a28c-14258a9971c3&quot;,&quot;name&quot;:&quot;Unlimited Vacation Policy&quot;,&quot;policy_type&quot;:&quot;vacation&quot;,&quot;accrual_method&quot;:&quot;unlimited&quot;,&quot;accrual_rate&quot;:null,&quot;accrual_rate_unit&quot;:null,&quot;paid_out_on_termination&quot;:false,&quot;accrual_waiting_period_days&quot;:null,&quot;carryover_limit_hours&quot;:null,&quot;max_accrual_hours_per_year&quot;:null,&quot;max_hours&quot;:null,&quot;is_active&quot;:true,&quot;complete&quot;:true,&quot;employees&quot;:[]}