GuidesAPI ReferenceChangelogAPI PolicyAPI StatusGusto Security
API Reference
These docs are for v2023-09-01. Click to read the latest docs for v2024-04-01.

Add people to a department

Add employees and contractors to a department

scope: departments:write

Path Params
string
required

The UUID of the department

Body Params
string

The current version of the object. See the versioning guide for information on how to use this field.

employees
array of objects

Array of employees to add to the department

employees
contractors
array of objects

Array of contractors to add to the department

contractors
Headers
string

Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.

Responses

Response body
object
string

The current version of the object. See the versioning guide for information on how to use this field.

string

The UUID of the department

string

The UUID of the company

string

Name of the department

employees
array of objects

Array of employees assigned to the department.

employees
object
string
contractors
array of objects

Array of contractors assigned to the department.

contractors
object
string
404

Not Found

The requested resource does not exist. Make sure the provided ID/UUID is valid.

Language
Credentials