Get attachments for spot
GET/api/inspect/v1/spot/attachment
Fetch the list of attachments in a spot for the given spot ID.
Request
Query Parameters
Spot ID for which attachments are to be fetched.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
200 response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
List of attachments
Order number of the attachment
ID of the spot to which the attachment is linked
Timestamp when the spot attachment was last updated in milliseconds
URL of the attachment
ID of the user who created the spot attachment
Remarks of the attachment
URL of the thumbnail image of the attachment
ID of the user who last updated the spot attachment
Timestamp when the spot attachment was created in milliseconds
attributes
object
A set of attributes for the attachment
Whether the attachment is a 360-degree photo
Rotation angle of the attachment
ID of the spot attachment
Name of the attachment
Possible values: [0
, 1
, 2
, 3
]
Type of the attachment. 0 = Document, 1 = Photo, 2 = Audio, 3 = Video
ID of the asset to which the spot attachment belongs
{
"data": [
{
"orderNo": 1,
"spotID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"updatedAt": 1652933097739,
"url": "https://example.com/attachment.jpg",
"createdBy": 1413,
"remarks": "Crack detected on the wall",
"thumbnailURL": "https://example.com/attachment/thumbnail.jpg",
"updatedBy": 1413,
"createdAt": 1652933097739,
"attributes": {
"photo360": false,
"rotation": 90
},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Begonia",
"type": 0,
"assetID": "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"
}