Skip to main content
POST
Create a per diem code

Authorizations

X-API-Key
string
header
required

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

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 created per diem code. An array request returns values instead of value.

value
object
required

One entry in a code list. Cost, union, and per diem codes are three separate lists that share this shape and behave identically.