Assign pay schedules for a company
POST {{baseUrl}}/v1/companies/:company_id/pay_schedules/assign
This endpoint assigns employees to pay schedules based on the schedule type.
For by_employee
and by_department
schedules, use the partial_assignment
parameter to control the assignment scope. Set it to true
for partial assignments (only some employees or departments at a time) and false
for full assignments (all employees or departments at once).
scope: pay_schedules:write
Request Body
{"type"=>"<string>", "hourly_pay_schedule_uuid"=>"<string>", "salaried_pay_schedule_uuid"=>"<string>", "default_pay_schedule_uuid"=>"<string>", "partial_assignment"=>"<boolean>", "employees"=>[{"employee_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}, {"employee_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}], "departments"=>[{"department_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}, {"department_uuid"=>"<string>", "pay_schedule_uuid"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Gusto-API-Version | string | Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
""