Create a cost code
Create one cost code, or several at once by sending an array.
code is trimmed and must be unique within your organization for this list; a duplicate is rejected with 409. The three lists are independent, so the same value can exist as a cost code, a union code, and a per diem code at once.
Authorizations
Organization-scoped API key. Create one in the BuildingSwell app under Organization settings, API keys.
Body
- object
- object[]
The code value itself, for example LOC-123. Trimmed on write and unique within your organization for this list.
1Unique id. Generated on create unless you supply one.
What the code is for. Trimmed on write. Defaults to null.
Whether the code is still offered for new work. Defaults to true.
When the record was created.
When the record last changed.
Response
The created cost code. An array request returns values instead of value.
- Option 1
- Option 2
One entry in a code list. Cost, union, and per diem codes are three separate lists that share this shape and behave identically.