Skip to main content
POST
Create User

Introduction

Note: fields that are disabled or restricted to the current user cannot be set on creation.

Usage

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for creating or updating a User. Pass UIDs (not objects) for relationship fields.

email
string
required
birthday_date
string<date> | null

date formatted as ISO 8601 (e.g. "2020-12-15")

city
string | null
contract_type
enum<string> | null
Available options:
contract,
expat,
fulltime,
intern,
parttime,
temporary
country
string | null

ISO3166 alpha-2 country code (e.g: "PT")

employee_number
string | null
first_name
string | null
gender
enum<string> | null
Available options:
female,
male,
non_binary,
other,
prefer_not_to_disclose
hire_date
string<date> | null

date formatted as ISO 8601 (e.g. "2020-12-15")

job_leave_date
string<date> | null

date formatted as ISO 8601 (e.g. "2020-12-15")

job_start_date
string<date> | null

date formatted as ISO 8601 (e.g. "2020-12-15")

job_title
string | null
last_name
string | null
last_working_date
string<date> | null

date formatted as ISO 8601 (e.g. "2020-12-15")

metadata
object

Arbitrary key/value pairs attached to the User (max 10 keys, string values of at most 255 characters). Passed keys are merged into the existing metadata: absent keys are preserved, passing a key with an empty or null value removes it, and passing metadata as an empty string removes all keys.

preferred_language
string | null

A language in IETF format (en-US, pt-PT, fr-FR...)

probation_end_date
string<date> | null

date formatted as ISO 8601 (e.g. "2020-12-15")

work_phone
string | null
department
string | null

The department this user belongs to. Pass the UID of the related object.

The legal entity this user belongs to. Pass the UID of the related object.

office_location
string | null

The office location of this user. Pass the UID of the related object.

report_to
string | null

The manager of this user. Pass the UID of the related object.

teams
string[] | null

Teams this user belongs to. Pass an array of UIDs of the related objects.

Response

201 - application/json

Successful

result
object