Skip to main content
PUT
Upsert many people

Authorizations

X-API-Key
string
header
required

Organization-scoped API key. Create one in the BuildingSwell app under Organization settings, API keys.

Query Parameters

update
string[]
required

Columns to overwrite when the row already exists. Repeat the parameter for each column: a single comma-separated value is read as one column name and fails at the database. Without the parameter the request is rejected with 400.

Body

application/json
name
string
required

Display name.

id
string<uuid>

Unique id. This is the value workerId refers to elsewhere.

customerIdentifier
string
default:""

Your own identifier for this person, for example an employee number. Defaults to an empty string.

teamId
string<uuid> | null

Team the person belongs to.

status
enum<string>
default:active

Employment status.

Available options:
active,
inactive,
terminated
isArchived
boolean
default:false

Archived people are hidden from list results unless you ask for them. They are never deleted, so historical ids still resolve. Set this to archive or restore the person.

exemptFromAssignments
boolean
default:false

true to leave the person out of assignment planning.

unionCode
string | null

Labor or union classification code.

Stored as a plain string. It is not validated against the union code list, and renaming an entry in that list does not change this value.

QuickBase badge link, used by that integration.

createdAt
string<date-time>

When the record was created.

updatedAt
string<date-time>

When the record last changed.

Response

The upserted people.

values
object[]
required