Upsert many union codes
Insert or update many union codes in one call. update is required: it lists the columns to overwrite when a row with a conflicting unique key already exists.
Matching is by id, not by code. An entry whose code is already taken by a different id is rejected with 409, so this is not a way to reseed a list from code values alone.
Authorizations
Organization-scoped API key. Create one in the BuildingSwell app under Organization settings, API keys.
Query Parameters
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
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 upserted union codes.