Upsert a QC inspection set
Insert the QC inspection set, 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
QC template version the set was filled from.
Unique id. Generated on create unless you supply one.
Root order the set belongs to. Set to null if that order is ever deleted.
Deliverable the set was inspected against. Set to null if that node is ever deleted.
Station the set was inspected at. Set to null if that station is ever deleted.
Project the set belongs to. Set to null if that project is ever deleted.
Phase name captured when the set was created.
People asked to fill the form. Defaults to empty.
Person id.
People who can approve the result. Defaults to empty.
Person id.
Category captured on the set.
Subcategory captured on the set.
true when the set was detached by a rework.
How the set came to exist. null on sets created before this field existed.
deliverable.reworked, deliverable.put_on_hold, deliverable.due_date_changed, deliverable.manual, deliverable.qc_step When the record was created.
When the record last changed.
Response
The upserted QC inspection set.
One filled-out QC form: which template was used, what it was inspected against, and how it came out.