Skip to main content
PUT
Upsert many deliverables

Authorizations

X-API-Key
string
header
required

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

Query Parameters

update
string[]
required

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

application/json
name
string
required

Display name.

type
enum<string>
required

Which concept this node represents.

Available options:
order,
route,
overhead,
template-phase,
phase,
component,
stage,
step,
qcstep,
group
id
string<uuid>

Unique id. Generated on create unless you supply one.

identifier
string

Human-readable id, unique within your organization. Generated for you when you leave it out.

isArchived
boolean
default:false

Archived records are hidden from list results unless you ask for them. Set this to archive or restore the record.

archivedAt
string<date-time> | null

When the record was archived. Set automatically when isArchived flips to true, and cleared on restore.

quantity
integer
default:1

How many of this node the work covers.

parentId
string<uuid> | null

Node directly above this one.

rootParentId
string<uuid> | null

Root of this node's tree. A root node points at itself.

originTemplateId
string<uuid> | null

Route or template this node was built from.

cycleTimeSec
integer
default:0

Cycle time per unit, in seconds.

durationSec
integer
default:0

Total duration, in seconds.

peopleNum
integer
default:1

How many people the node is planned for.

data
object

Per-concept fields. Which keys apply depends on type: a stage node needs stageId, an order needs projectId, and so on. See the domain concepts guide for the full table.

Example:
costCode
string | null

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.

createdAt
string<date-time>

When the record was created.

updatedAt
string<date-time>

When the record last changed.

Response

The upserted deliverables.

values
object[]
required