Skip to content
Suomi

The property sets and properties the project's elements have

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

Each property with its type, how many elements have it and its most common values: what queryElements can filter on.

projectId
required
string format: uuid
model_version_id
string format: uuid

One model version (from listModelVersions); without it the current version of every model

The summary

Media typeapplication/json

ElementPropertySummary: the property sets and properties the project’s elements have.

object
elements_with_properties
required
integer format: int64
keys
required
Array<object>

One property over the merged models.

object
pset
required
string
property
required
string
type
required

The type of a summarised property.

string
Allowed values: string number boolean mixed
count
required

Elements that have the property

integer format: int64
distinct
required
integer format: int64
complete
required

False when values holds only the most common values

boolean
values
required

Most common first, as the text the filter compares

Array<object>

ElementPropertyValueCount: one value and the elements that have it.

object
value
required
string
count
required
integer format: int64
dropped
required

What the summary left out at its limits.

object
values
required
integer format: int64
properties
required
integer format: int64
assets_capped
required
integer format: int64
models_without_properties
required

Model versions read before properties were kept

Array<string>

Example

{
"keys": [
{
"type": "string"
}
]
}

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