Skip to content
Suomi

One element with its properties

GET
/v1/projects/{projectId}/elements/{globalId}
Code sample: Shell / cURL
curl --request GET \
--url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/elements/example \
--header 'Authorization: Bearer <token>'

The element as listElements has it, with its property sets, the model version it was last read from and, for an archived element whose data was carried over, the element it went to. Its inspections, findings, events and maintenance entries are in their own lists.

projectId
required
string format: uuid
globalId
required
string
>= 1 characters <= 64 characters

The IFC GlobalId

The element

Media typeapplication/json

ElementDetail: one element with its property sets.

object
global_id
required
string
project_id
required
string format: uuid
name
required
string | null
ifc_type
required
string
predefined_type
required
string | null
storey_name
required
string | null
building_name
required
string | null
type_name
required
string | null
part_count
required
integer | null format: int32
archived_at
required

Set when a later version of its model no longer has the element

string | null
properties
required

Property sets by name, each with its properties by name; a value is a string, a number or a boolean

object | null
moved_to
required

For an archived element whose data was carried over: the live element it went to

string | null
model_version_id
required

The model version the element was last read from

string format: uuid

Example generated

{
"global_id": "example",
"project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"ifc_type": "example",
"predefined_type": "example",
"storey_name": "example",
"building_name": "example",
"type_name": "example",
"part_count": 1,
"archived_at": "example",
"properties": "example",
"moved_to": "example",
"model_version_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

VALIDATION_ERROR for a malformed id or parameter; INVALID_PROPERTY_FILTER for a property condition the filter cannot use

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 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 or element

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"
}