Upsert a stage
Insert the stage, or update it when a row with a conflicting unique key already exists. update is required and lists which columns to overwrite on conflict.
Authorizations
Organization-scoped API key. Create one in the BuildingSwell app under Organization settings, API keys.
Path Parameters
Record id.
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
Station name, for example Welding.
Department the station belongs to.
How many orders the station can hold at once. Zero or greater.
x >= 0Unique id. Generated on create unless you supply one.
What happens at this station.
Cost code. Trimmed on write, and an empty string is rejected: send a non-empty string or null.
Stored as a plain string. It is not validated against the cost code list, and renaming an entry in that list does not change this value.
Archived stations are hidden from list results unless you ask for them.
When the record was created.
When the record last changed.
Response
The upserted stage.
A reusable shop station, scoped to one department.