Skip to main content
GET
/
interventions-anomalies
/
v1
/
rs
/
interventions
/
{interventionId}
/
anomalies
/
{anomalyId}
Get intervention anomaly
curl --request GET \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/interventions-anomalies/v1/rs/interventions/{interventionId}/anomalies/{anomalyId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Session-Token: <x-session-token>'
{
  "data": {
    "id": 1,
    "anomalyId": 1,
    "interventionId": 1,
    "comment": "Comment on the interventionAnomaly",
    "providerAction": 1,
    "clientDecision": 1,
    "clientDecisionComment": "Comment on the decision",
    "anomaly": {
      "id": 1,
      "type": 1,
      "status": 1,
      "title": "Anomaly title",
      "description": "Anomaly description",
      "risk": 1,
      "anomalyNumber": "A-12345",
      "pageNumber": 12,
      "dueAt": "2024-12-01T12:34:56.000Z",
      "observedAt": "2024-12-01T12:34:56.000Z",
      "deletedAt": "2024-01-15T08:45:00.000Z",
      "archivedAt": "2024-01-15T08:45:00.000Z",
      "updatedAt": "2024-12-05T14:56:23.000Z",
      "createdAt": "2024-01-15T08:45:00.000Z",
      "onSiteObs": true,
      "technicalInstallation": {
        "id": 1,
        "name": "establishment_informations.installation_ascenseurs",
        "presignedUrl": "https://example.com/presigned-url"
      },
      "report": {
        "id": 1,
        "name": "Document Name",
        "presignedUrl": "https://example.com/presigned-url"
      }
    },
    "intervention": {
      "id": 1,
      "status": 2,
      "type": 1,
      "subType": 1,
      "codePin": 123456,
      "description": "Description of the intervention",
      "scheduledStart": "2024-12-01T12:34:56.000Z",
      "scheduledEnd": "2024-12-05T14:56:23.000Z",
      "actualStart": "2024-12-01T12:34:56.000Z",
      "actualEnd": "2024-12-01T12:34:56.000Z",
      "archivedAt": "2024-12-09T14:23:00.000Z",
      "updatedAt": "2024-12-09T14:23:00.000Z",
      "createdAt": "2024-01-15T08:45:00.000Z",
      "assignedTo": {
        "type": 1,
        "id": 1,
        "name": "John Doe",
        "email": "[email protected]"
      }
    },
    "actions": {
      "canBeAdjudicated": true,
      "canBeHandled": true
    },
    "attachments": [
      {
        "id": 1,
        "name": "document.pdf",
        "storageKey": "attachments/2024/document-123.pdf",
        "presignedUrl": "https://example.com/presigned-url"
      }
    ]
  }
}

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"

Path Parameters

interventionId
integer
required

Unique identifier of the intervention.

Example:

1

anomalyId
integer
required

Unique identifier of the intervention.

Example:

1

Query Parameters

extend
enum<string>[]

Extend options:

  • "anomaly": Get the anomaly with specific fields

  • "anomaly-technical-installation": Get information about technical installations linked to the anomaly

  • "anomaly-report": Provides anomaly report information

  • "intervention": Get the interventions with specific fields

  • "intervention-assigned-to": Get information about the assigned to (company contact or profile)

  • "actions-info": Give information about actions that can be done on anomaly

  • "attachments": Get the attachments with specific fields

Available options:
anomaly,
anomaly-technical-installation,
anomaly-report,
intervention,
intervention-assigned-to,
actions-info,
attachments

Response

200 - application/json

Get intervention anomaly response

data
object
required