Add people to a department
PUT {{baseUrl}}/v1/departments/:department_uuid/add
Add employees and contractors to a department
scope: departments:write
Request Body
{"version"=>"<string>", "employees"=>[{"uuid"=>"<string>"}, {"uuid"=>"<string>"}], "contractors"=>[{"uuid"=>"<string>"}, {"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
{"uuid":"56260b3d-c375-415c-b77a-75d99f717193","company_uuid":"7087a288-8349-4632-b92e-bc94fb79f29e","title":"Stage Hand","version":"d90440dd464601d1c8f4e9e240dfb7a6","employees":[{"uuid":"41199375-a999-4414-9f40-d9bf596b134d"}],"contractors":[{"uuid":"3488549f-60e4-494f-a34a-9d8aad3aabf5"}]}