Skip to main content
PUT
Upsert many per diem codes

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
code
string
required

The code value itself, for example LOC-123. Trimmed on write and unique within your organization for this list.

Minimum string length: 1
id
string<uuid>

Unique id. Generated on create unless you supply one.

description
string | null

What the code is for. Trimmed on write. Defaults to null.

isActive
boolean
default:true

Whether the code is still offered for new work. Defaults to true.

createdAt
string<date-time>

When the record was created.

updatedAt
string<date-time>

When the record last changed.

Response

The upserted per diem codes.

values
object[]
required