Skip to content
Suomi

A model's removed elements with what is linked to them

GET
/v1/projects/{projectId}/models/{modelId}/removed-elements
Code sample: Shell / cURL
curl --request GET \
--url 'https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/removed-elements?status=open&limit=25' \
--header 'Authorization: Bearer <token>'

Pages of at most 25; pass next_cursor as cursor. Removed elements stay archived; they also come in listElements with archived_at.

projectId
required
string format: uuid
modelId
required
string format: uuid

The model’s id

status

The tab of the removed list.

string
default: open
Allowed values: open resolved all
cursor
string
>= 1 characters <= 4096 characters

The next_cursor of the previous page

limit
integer format: int64
default: 25 >= 1 <= 25

One page

Media typeapplication/json

One page of a model’s removed elements.

object
data
required
Array<object>

A removed element with what is linked to it.

object
global_id
required
string
name
required
string | null
ifc_type
required
string
storey_name
required
string | null
archived_at
required
string
resolved_at
required
string | null
removed_in_version
required
integer format: int64
label
required
One of:

The label of a removed element.

object
id
required

The qr_codes row.

string format: uuid
giai
required

Its GIAI.

string
inspections
required
Array<object>

One inspection of a removed element.

object
id
required

The workflow.

string format: uuid
template_name
required

Its template’s name.

string | null
plan_name
required

Its plan’s name.

string | null
status
required

The workflow status.

string
steps_done
required

Steps marked ok or na.

integer format: int64
steps_total
required

Every step.

integer format: int64
inspections_total
required
integer format: int64
plans
required
Array<object>

One plan that names a removed element.

object
id
required

The plan.

string format: uuid
name
required

Its name.

string
plans_total
required
integer format: int64
observations
required
integer format: int64
element_events
integer format: int64
marked_after_removal
required
boolean
proposal

Only where the organisation has carry-over: the live element proposed to take the data

One of:

The proposed target of one removed element.

object
global_id
required

The live element proposed.

string
name
required

Its name, cut to 200 characters.

string | null
type_name
required

Its type name, cut to 200 characters.

string | null
storey_name
required

Its storey, cut to 200 characters.

string | null
tier
required

The tier.

string
Allowed values: varma todennakoinen ristiriita
conflict

Set when the tier is ristiriita.

string
Allowed values: label inspection
carried_to

Only where the organisation has carry-over: where the data went; remap_id is the carry-over’s id

One of:

CarriedTo: the live element a removed one’s data was carried to.

object
global_id
required

The live element.

string
name
required

Its name, at most 200 characters.

string | null
at
required

When the carry-over was applied, as PostgreSQL text.

string
by
required

Who applied it.

string | null
remap_id
required

The asset_remaps row.

string format: uuid
batch_id
required

The batch it was applied in.

string format: uuid
batch_size
required

Active carry-overs of that batch.

integer format: int64
carry_history
Array<object>

CarryHistoryEntry: one carry-over of a removed element.

object
remap_id
required

The asset_remaps row.

string format: uuid
global_id
required

The element the data went to.

string
name
required

Its name, at most 200 characters.

string | null
applied_at
required

As PostgreSQL text.

string
applied_by
required

Who applied it.

string | null
undone_at
required

As PostgreSQL text; null while active.

string | null
undone_by
required

Who undid it.

string | null
stayed
required

On an undone carry-over: work recorded on the new element after it, which stayed there.

integer | null format: int64
next_cursor
required
string | null
batch_max

Only where the organisation has carry-over: the most pairs one carryOverElements call takes

integer format: int64

Example

{
"data": [
{
"proposal": {
"tier": "varma",
"conflict": "label"
}
}
]
}

Invalid body, parameters or Idempotency-Key

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

Missing, malformed, expired or revoked token

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE when the project role the scopes give does not cover the write, or the project is not the integration’s; PUBLIC_API_DISABLED when the project’s owning organisation has turned the API off

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

No such project, model, model version or reference document

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

IDEMPOTENCY_KEY_REUSED: the key was used with another body

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

RATE_LIMITED; wait for Retry-After seconds

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}