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.
Timestamp when the asset was created in milliseconds
Whether the asset is a demo asset
Name of the asset
Rating of the asset
ID of the user who last updated the asset
Unique identifier (ID) for the asset
ID of the company to which the asset belongs
ID of the user who created the asset
geolocation
object
Geolocation of the asset
geometry
object
The geometry of the entity on the Map.
Possible values: >= 2
, <= 2
The latitude and longitude coordinates of the entity on the Map.
The type of geometry used, typically indicating the format of the map coordinates.
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.
The type of geometry used, typically indicating the format of the map coordinates.
Possible values: [1
, 2
, 3
, 4
, 5
]
Type of the asset. 1 = Bridge, 2 = Building, 3 = Road, 4 = Tunnel, 5 = Others
Whether the asset is archived
Whether the asset is a favorite asset
URL to the thumbnail of the asset
Timestamp when the asset was last updated in milliseconds
{
"data": [
{
"createdAt": 1652933097739,
"demo": false,
"name": "Begonia",
"rating": 4.5,
"updatedBy": 1413,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"companyID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"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"
},
"type": 1,
"archived": false,
"favorite": false,
"thumbnailURL": "https://example.com/thumbnail.jpg",
"updatedAt": 1652933097739
}
]
}
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"
}