Skip to main content
GET
/
anomalies
/
v2
/
mb
/
{anomalyId}
Get Anomaly by Id
curl --request GET \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/anomalies/v2/mb/{anomalyId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'X-Session-Token: <x-session-token>'
{
  "data": {
    "id": 1,
    "status": 1,
    "title": "Anomaly title",
    "description": "Anomaly description",
    "type": 1,
    "priority": 1,
    "reportId": 1,
    "siteId": 1,
    "technicalInstallationId": 1,
    "resolvedById": 1,
    "observedAt": "2024-12-01T12:34:56.000Z",
    "resolvedAt": "2024-12-01T12:34:56.000Z",
    "updatedAt": "2024-12-05T14:56:23.000Z",
    "createdAt": "2024-01-15T08:45:00.000Z",
    "deletedAt": "2024-01-15T08:45:00.000Z",
    "onSiteObs": true,
    "location": {
      "floor": "1st Floor",
      "room": "1st Floor"
    },
    "reporter": {
      "firstName": "John",
      "lastName": "Doe"
    },
    "resolvedComment": "Anomaly resolved",
    "images": [
      {
        "file": "image1",
        "size": 1024,
        "presignedUrl": "<string>"
      }
    ],
    "interventionImages": [
      {
        "file": "<string>",
        "presignedUrl": "<string>"
      }
    ],
    "reportS3key": "<string>",
    "reportPreSignedUrl": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Session-Token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Content-Type
enum<string>
required

Content type, must be "application/json".

Available options:
application/json

Path Parameters

anomalyId
integer
required

Unique identifier of the anomaly.

Example:

1

Query Parameters

extend
enum<string>[]

Extend options:

  • "anomaly-images": Give information about the images of the anomaly

  • "intervention-images": Give information about the images of the intervention anomaly

  • "intervention-report": Get the link to the intervention report

Available options:
anomaly-images,
intervention-images,
intervention-report

Response

200 - application/json

Get the anomaly information

data
object
required