v1
Personnel
Personnel

Onboard Personnel

Create personnel record + WorkOS user + local users row in one atomic flow.

Requires personnel write permission. Rolls back the personnel record if any subsequent step fails.

post/api/v1/personnel/onboard

Request

  • Base URL
    https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

PersonnelOnboard required

Schema for the combined onboard flow: create personnel + provision user account.

Email and PIN are optional. The person is a roster record either way. A portal login and an invite email are created only when send_invite is true.

name, string required
email, string nullable
phone, string nullable
hire_date, string nullable
status, string
employee_type, string
shop_id, integer nullable
capability_ids, integer[]
capabilities_with_proficiency, CapabilityProficiency[] nullable

Capabilities with proficiency; takes precedence over capability_ids

shop_role_id, integer nullable
send_invite, boolean
confirm, boolean
pin, string nullable
export_authorization, 'us_person' | 'foreign_person' nullable
gusto_id, string nullable
address, string nullable
hourly_rate, number nullable
emergency_contact_name, string nullable
emergency_contact_phone, string nullable
notes, string nullable
preferred_language, string nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 56 revisions of this API.