Get assets for company
GET/api/inspect/v1/asset
Fetch the list of assets for the given company that the user has access to.
Request
Query Parameters
Company ID for which assets are to be fetched.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
200 response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
The list of assets.
ID of the user who created the asset
geolocation
object
Geolocation of the asset
The type of geometry used, typically indicating the format of the map coordinates.
geometry
object
The geometry of the entity on the Map.
The type of geometry used, typically indicating the format of the map coordinates.
Possible values: >= 2
, <= 2
The latitude and longitude coordinates of the entity on the Map.
properties
object
The properties of the entity on the Map.
The address of the entity on the Map.
The name of the entity on the Map.
Name of the asset
Whether the asset is archived
Whether the asset is a demo asset
Rating of the asset
URL to the thumbnail of the asset
Possible values: [1
, 2
, 3
, 4
, 5
]
Type of the asset. 1 = Bridge, 2 = Building, 3 = Road, 4 = Tunnel, 5 = Others
ID of the user who last updated the asset
ID of the company to which the asset belongs
Whether the asset is a favorite asset
Timestamp when the asset was last updated in milliseconds
Timestamp when the asset was created in milliseconds
Unique identifier (ID) for the asset
{
"data": [
{
"createdBy": 1413,
"geolocation": {
"geometry": {
"coordinates": [
1.29941,
103.787567
],
"type": "Point"
},
"properties": {
"address": "1 Fusionopolis Way, Connexis South Tower, Singapore 138632",
"name": "Screening Eagle Singapore"
},
"type": "Feature"
},
"name": "Begonia",
"archived": false,
"demo": false,
"rating": 4.5,
"thumbnailURL": "https://example.com/thumbnail.jpg",
"type": 1,
"updatedBy": 1413,
"companyID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"favorite": false,
"updatedAt": 1652933097739,
"createdAt": 1652933097739,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}
400 response
- application/json
- Schema
- Example (from schema)
Schema
A code representing the specific error that occurred. This can be used to programmatically identify and handle the error.
A detailed description of the error, providing more context or information about what went wrong. This is intended to help understand the cause of the error and how to resolve it.
{
"error": "Forbidden",
"errorDescription": "permission denied"
}
401 response
- application/json
- Schema
- Example (from schema)
Schema
A code representing the specific error that occurred. This can be used to programmatically identify and handle the error.
A detailed description of the error, providing more context or information about what went wrong. This is intended to help understand the cause of the error and how to resolve it.
{
"error": "Forbidden",
"errorDescription": "permission denied"
}
403 response
- application/json
- Schema
- Example (from schema)
Schema
A code representing the specific error that occurred. This can be used to programmatically identify and handle the error.
A detailed description of the error, providing more context or information about what went wrong. This is intended to help understand the cause of the error and how to resolve it.
{
"error": "Forbidden",
"errorDescription": "permission denied"
}
404 response
- application/json
- Schema
- Example (from schema)
Schema
A code representing the specific error that occurred. This can be used to programmatically identify and handle the error.
A detailed description of the error, providing more context or information about what went wrong. This is intended to help understand the cause of the error and how to resolve it.
{
"error": "Forbidden",
"errorDescription": "permission denied"
}
500 response
- application/json
- Schema
- Example (from schema)
Schema
A code representing the specific error that occurred. This can be used to programmatically identify and handle the error.
A detailed description of the error, providing more context or information about what went wrong. This is intended to help understand the cause of the error and how to resolve it.
{
"error": "Forbidden",
"errorDescription": "permission denied"
}