Get Asset
GET/api/v1/assets/:asset
Get an Asset
by its ID
.
Request
Path Parameters
asset integerrequired
Possible values: > 0
ID
of the Asset
Responses
- 200
- 400
- 401
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
id integerrequired
ID
of the Asset
Possible values: > 0
Example:
1000
name stringrequired
Name
of the Asset
Example:
Asset 1
createdAt date-timerequired
Creation Date
of the Asset
Example:
2025-03-12T18:12:44.465Z
updatedAt date-timerequired
Update Date
of the Asset
Example:
2025-03-12T18:12:44.465Z
type stringrequired
Type
of the Asset
Example:
Vessel
description stringnullablerequired
Description
of the Asset
Example:
Description
workspace
object
required
id integerrequired
ID
of the Workspace
Possible values: > 0
Example:
1000
name stringrequired
Name
of the Workspace
Example:
Workspace 1
{
"id": 1000,
"name": "Asset 1",
"createdAt": "2025-03-12T18:12:44.465Z",
"updatedAt": "2025-03-12T18:12:44.465Z",
"type": "Vessel",
"description": "Description",
"workspace": {
"id": 1000,
"name": "Workspace 1"
}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
status stringrequired
Possible values: [Validation Error
]
errors
object[]
required
error stringrequired
location stringrequired
Possible values: [body
, query
, path
, headers
]
{
"status": "Validation Error",
"errors": [
{
"error": "string",
"location": "body"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
status stringrequired
Possible values: [Unauthorized
]
{
"status": "Unauthorized"
}
Asset not found
- application/json
- Schema
- Example (from schema)
Schema
status stringrequired
Possible values: [Asset not found
]
{
"status": "Asset not found"
}
Loading...