GuidesAPI ReferenceChangelogAPI PolicyAPI StatusGusto Security
API Reference
v2023-09-01 is in the deprecation process and all prior versions have been deprecated. Click this banner to review our version upgrade guide.

Change the contractor's onboarding status

Updates a contractor's onboarding status.

scope: contractors:write

Below is a list of valid onboarding status changes depending on the intended action to be performed on behalf of the contractor.

Actioncurrent onboarding_statusnew onboarding_status
Mark a contractor as self-onboardingadmin_onboarding_incompleteself_onboarding_not_invited
Invite a contractor to self-onboardadmin_onboarding_incomplete or self_onboarding_not_invitedself_onboarding_invited
Cancel a contractor's self-onboardingself_onboarding_invited or self_onboarding_not_invitedadmin_onboarding_incomplete
Review a contractor's self-onboarded infoself_onboarding_startedself_onboarding_review
Finish a contractor's onboardingadmin_onboarding_review or self_onboarding_reviewonboarding_completed

📘

When contractor is fully onboarded
The new hire report will be generated using the current data (work_state) (if contractor file_new_hire_report is set true)

Path Params
string
required

The UUID of the contractor

Body Params
string
required
Defaults to onboarding_completed

The updated onboarding status for the contractor

Headers
string
Defaults to 2024-04-01

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
required

Unique identifier for this contractor.

string

One of the "onboarding_status" enum values.

onboarding_completed admin_onboarding_review admin_onboarding_incomplete

onboarding_steps
array of objects

List of steps required to onboard a contractor.

onboarding_steps
object
string

User-friendly description of the onboarding step.

string

String identifier for the onboarding step.

boolean

When true, this step is required.

boolean

When true, this step has been completed.

requirements
array of strings

A list of onboarding steps required to begin this step.

requirements
404

Not Found

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

invalid_attribute_value, or the request fails due to an invalid_operation. See the Errors Categories guide for more details.

Language
Credentials