Get spots for asset
GET/api/inspect/v1/spot
Fetch the list of spots in an asset for the given asset ID.
Request
Query Parameters
Asset ID for which spots are to be fetched.
Page number for pagination.
Number of spots per page.
Sort order for spots.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
200 response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
data
object[]
List of spots
A flag indicating whether the spot is archived.
The unique identifier of the asset to which the spot belongs.
The timestamp when the spot was created in milliseconds
The unique identifier of the spot
The spot number
The ID of the user who last updated the spot
The ID of the user who created the spot
fields
object
A map of spot fields and their values. The keys are the IDs of the spot fields, and the values are the values of the spot fields.
A map of spot fields and their values. The keys are the IDs of the spot fields, and the values are the values of the spot fields.
The unique identifier of the spot template used to create the spot.
The URL of the thumbnail image representing the spot.
The timestamp when the spot was last updated in milliseconds
{
"data": [
{
"archived": false,
"assetID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": 1652933097739,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ticketID": 3,
"updatedBy": 1413,
"createdBy": 1413,
"fields": {
"fb122b5a-8871-4fee-a708-9d9a3b94c0db": "377b652d-8ff7-4828-b7e1-31deae5b2faa",
"severity": "major",
"377b652d-8ff7-4828-b7e1-31deae5b2faa": "There are some damages on the wall",
"assignedTo": null,
"dueDate": 1630444800000
},
"spotTemplateID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"thumbnailURL": "https://example.com/spot/thumbnail.jpg",
"updatedAt": 1652933097739
}
]
}
400 Bad Request. The request is invalid. This may occur if required parameters are missing or invalid. Ensure that all required parameters are included and valid.
- 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 Unauthorized. Authentication is required and was not provided or is invalid. Ensure that the correct credentials or tokens are included in the request.
- 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 Forbidden. The client does not have permission to perform this action. This might happen if the client lacks the necessary privileges to interact with the specified entity.
- 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 Not Found. The specified entity does not exist. Verify that the reference given is correct and that the entity is available.
- 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 Internal Server Error. An error occurred on the server while processing the request. Retry the operation or contact support if the issue persists.
- 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"
}