StaffCreate
anyOf- Identify by email
- Identify by phone
Possible values: <= 40 characters
name objectrequired
Possible values: <= 100 characters
Possible values: <= 100 characters
work_eligibility_period objectnullable
UTC timestamp with exactly three fractional-second digits, for example 2026-01-01T00:00:00.000Z.
UTC timestamp with exactly three fractional-second digits, for example 2026-04-01T00:00:00.000Z.
departments object
Departments to assign when creating a new staff profile. If omitted, the company's default department is assigned. Provide lookup_type 'code' with an empty codes array to create a profile without departments. All supplied codes must identify departments in the authenticated company.
code- code
Possible values: [code]
Possible values: <= 100 characters
en- Englishfr- Frenches- Spanish
Possible values: [en, fr, es]
trueRequest an email invitation with instructions to install the Workstaff mobile app. An invitation is sent only if the profile has an email address and the worker has not activated their account. Replies go to the company's default contact.
falsehome_location object
The staff member's home location. If omitted, the company's default location is used.
The staff member's home location. If omitted, the company's default location is used.
Possible values: [zipcode, city, address]
- zipcode
- city
- address
Possible values: <= 15 characters
Possible values: <= 255 characters
Possible values: <= 100 characters
Possible values: <= 2 characters
Possible values: <= 15 characters
Possible values: <= 255 characters
Possible values: <= 100 characters
Possible values: <= 2 characters
{
"external_id": "string",
"name": {
"first_name": "string",
"last_name": "string"
},
"email": "user@example.com",
"phone": "string",
"birth_date": "2024-07-29",
"work_eligibility_period": {
"start": "2024-07-29T15:51:28.071Z",
"end": "2024-07-29T15:51:28.071Z"
},
"departments": {
"lookup_type": "code",
"codes": [
"string"
]
},
"language": "en",
"is_active": true,
"send_invitation": false,
"home_location": {
"lookup_type": "zipcode",
"zipcode": "string"
}
}