Hustro API
  1. Issue
Hustro API
  • Analytics
    • Get average issue resolution time
      GET
    • Get detected and resolved issues statistics
      GET
  • Company
    • Get all companies from a project
      GET
    • Create company
      POST
    • Update company with specified id
      PUT
    • Remove company with specified id
      DELETE
    • Restore company with specified id
      GET
  • Compliance check document
    • Create new compliance check document
      POST
    • Edit compliance check document
      PUT
    • Remove compliance check document
      DELETE
  • Contract
    • Get all contracts from a project
      GET
    • Create contract on a project
      POST
    • Update contract with specified id
      PUT
    • Remove contract with specified id
      DELETE
    • Restore contract with specified id
      GET
  • Client
    • Get clients
      GET
    • Create Client
      POST
    • Update Client
      PUT
  • Checklist Item
    • Create Checklist Item
    • Update Checklist Item
    • Delete Checklist Item
  • Checklist item
    • Create new checklist item
    • Edit checklist item
    • Remove checklist item
  • Custom field values
    • Create
      • Create worktype
      • Create hazardCategory
      • Create environmentalAspect
      • Create correctiveActionType
    • translation
      • Create translation worktype
      • Create translation hazardCategry
      • Create translation environmentalAspect
      • Create translation correctiveActionType
    • visibleOnProcess
      • Create visibleOnProcess worktype
      • Create visibleOnProcess hazardCategory
      • Create visibleOnProcess environmentalAspect
      • Create visibleOnProcess correctiveActionType
    • Get worktypes
    • Get hazardCategories
    • Get environmentalAspect
    • Get correctiveActionType
  • Documentation
    • Create documentation
    • Get documentations
    • Update documentation
    • Delete documentation
    • Restore documentation
    • PUT documentation presigned post
    • PUT documentation uploadConfirmation
    • AWS documentation upload
  • Document
    • On Issue
      • Upload confirmation
      • Upload failure
      • Download data
      • Delete document
      • Create document
      • Drawing start
      • Get single document
      • Get document from incoming email
    • On Event
      • Upload confirmation
      • Upload failure
      • Download data
      • Get single document from event
      • Delete document
      • Create document
    • On Inspection Template
      • Create document
      • Update document
      • Download data
      • Delete document
      • Upload confirmation
      • Upload failure
    • On Checklist Item
      • Create document
      • Update document
      • Download data
      • Delete document
      • Upload confirmation
      • Upload failure
    • On Protocol Item
      • Create document
      • Update document
      • Download data
      • Delete document
      • Upload confirmation
      • Upload failure
    • Shared Document
      • Get shared document with event
      • Get shared document
  • Dir
    • Create dir
    • Get dirs
    • Update dir
    • Delete dir
    • Restore dir
  • Event
    • Create event
    • Update event
    • Get single event
    • Delete event
  • Form
    • GET issue form
  • gdpr
    • Get GDPR
  • Issue
    • Get all issues from a project
      GET
    • Create issue
      POST
    • Get single issue
      GET
    • Update issue
      PUT
    • Delete issue
      DELETE
    • Restore issue
      GET
    • Get changelog
      GET
    • Get inspection issues
      GET
  • Issue access
    • Edit access
    • Delete access
    • Create access item
  • Inspection
    • Get all inspections
    • Create new inspection
    • Edit inspection
    • Get single inspection
  • Incoming Email Message Content
    • Get Incoming Email Message Content
  • Level
    • Get levels
    • Create level
    • Edit level
    • Update levels
    • Delete level
    • Restore level
  • Logo - on client
    • GET logos
    • Create logo
    • Update logo
  • Logo - on project
    • GET logos
    • Create logo
    • Update logo
  • Norm document
    • Post new file as norm document
    • Edit norm document
    • Delete norm document
  • Open Api app
    • Create client application
    • Create oauth token
    • Get client applications
    • Delete client application
  • PdfFooter
    • GET footers
    • Create footer
    • Update footer
    • Delete footer
  • Project
    • Get projects
    • Create project
    • Update Project
  • Public
    • Get Status
    • Get PDF Service Status
    • Get Icons
    • Get Android Asset Links
    • Get iOS Asset Links
    • Get SimpleForm (Public)
    • Get Client (Public)
    • Get Logo Download (Public)
  • Protocol item
    • Fill inspection protocol item
  • Process
    • Get processes
  • Site
    • Get sites
    • Create Site
    • Edit Site
    • Delete Site
    • Restore Site
  • SimpleForm
    • Get Simple Forms
    • Get SimpleForm details
    • Get projects
    • Get sites for project
    • Get levels for site
    • Get documentation version download
    • Send Creation Notification
    • Create issue
    • Create SimpleForm
    • Update Simple Form
  • Statistics
    • Company score
    • Issue average resolution time
    • Detected Resolved Issues
  • Template
    • Create new template
    • Get all templates
    • Update single template
    • Get inspection template
    • Delete inspection template
  • User
    • Get user-me
    • Get users on project
    • Update user
    • Create user
  • Visible field
    • GET visible fields
    • PUT upsert visible fields
  • Worktype
    • Get all worktypes from a project
  1. Issue

Get inspection issues

GET
https://app.hustro.com/api/v2/project/{projectId}/inspection/issue
Get all inspections created from all inspections carried out on a project with specified id.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://app.hustro.com/api/v2/project//inspection/issue' \
--header 'hustro-client: m2m' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
Response Response Example
[
    {
        "documents": [
            {
                "description": "string",
                "data": {
                    "bucketName": "hustro-documents-staging",
                    "documentType": "FILE",
                    "extension": "jpg",
                    "isDrawn": true,
                    "key": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9.jpg",
                    "name": "pexels-olga-lioncat-7245366",
                    "thumbnailKey": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9_thumbnail.jpg",
                    "type": "image/jpeg",
                    "uploadStatus": "SUCCESS",
                    "url": "string"
                },
                "deleted": true,
                "_id": "5f479169f7ef7fe33b3cca36",
                "createdAt": "2020-12-01T11:32:01+01:00",
                "createdBy": "5f479169f7ef7fe33b3cca36",
                "modifiedAt": "2020-12-01T11:32:01+01:00",
                "modifiedBy": "5f479169f7ef7fe33b3cca36"
            }
        ],
        "hashtag": "da9b",
        "inspection": "5f479169f7ef7fe33b3cca36",
        "protocolItem": "5f479169f7ef7fe33b3cca36",
        "userAccesses": [
            {
                "accessLevel": "EDIT",
                "accessingUser": "5f479169f7ef7fe33b3cca36",
                "deleted": true,
                "_id": "5f479169f7ef7fe33b3cca36",
                "createdAt": "2020-12-01T11:32:01+01:00",
                "createdBy": "5f479169f7ef7fe33b3cca36",
                "modifiedAt": "2020-12-01T11:32:01+01:00",
                "modifiedBy": "5f479169f7ef7fe33b3cca36"
            }
        ],
        "events": [
            {
                "description": [
                    {
                        "type": "text",
                        "text": "some text"
                    }
                ],
                "documents": [
                    {
                        "description": "string",
                        "data": {
                            "bucketName": "hustro-documents-staging",
                            "documentType": "FILE",
                            "extension": "jpg",
                            "isDrawn": true,
                            "key": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9.jpg",
                            "name": "pexels-olga-lioncat-7245366",
                            "thumbnailKey": "client/635a7a1e1ed39332efecfd94/project/635a7a1e22eda9be81e7c88e/issue/63a2f0c5b3b49a3d8b7b5d42/event/63ac505fbbaa4ce8525afca8/document/63ac51e9bbaa4ce8525b04e9_thumbnail.jpg",
                            "type": "image/jpeg",
                            "uploadStatus": "SUCCESS",
                            "url": "string"
                        },
                        "deleted": true,
                        "_id": "5f479169f7ef7fe33b3cca36",
                        "createdAt": "2020-12-01T11:32:01+01:00",
                        "createdBy": "5f479169f7ef7fe33b3cca36",
                        "modifiedAt": "2020-12-01T11:32:01+01:00",
                        "modifiedBy": "5f479169f7ef7fe33b3cca36"
                    }
                ],
                "title": "string",
                "deleted": true,
                "_id": "5f479169f7ef7fe33b3cca36",
                "createdAt": "2020-12-01T11:32:01+01:00",
                "createdBy": "5f479169f7ef7fe33b3cca36",
                "modifiedAt": "2020-12-01T11:32:01+01:00",
                "modifiedBy": "5f479169f7ef7fe33b3cca36"
            }
        ],
        "deleted": true,
        "_id": "5f479169f7ef7fe33b3cca36",
        "createdAt": "2020-12-01T11:32:01+01:00",
        "createdBy": "5f479169f7ef7fe33b3cca36",
        "modifiedAt": "2020-12-01T11:32:01+01:00",
        "modifiedBy": "5f479169f7ef7fe33b3cca36",
        "process": "PROCESS_ENV",
        "stage": "DRAFT",
        "primaryData": {
            "assignee": "5f479169f7ef7fe33b3cca36",
            "contractNumbers": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "title": "string",
            "description": "string",
            "detectionDate": "2020-12-01T11:32:01+01:00",
            "executor": "5f479169f7ef7fe33b3cca36",
            "site": "5f479169f7ef7fe33b3cca36",
            "level": "5f479169f7ef7fe33b3cca36",
            "subcontractors": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "positionOnMap": {
                "x": 0,
                "y": 0
            },
            "targetAreas": [
                [
                    {
                        "x": 0,
                        "y": 0
                    },
                    {
                        "x": 0,
                        "y": 0
                    },
                    {
                        "x": 0,
                        "y": 0
                    }
                ]
            ],
            "finalAreas": [
                [
                    {
                        "x": 0,
                        "y": 0
                    },
                    {
                        "x": 0,
                        "y": 0
                    },
                    {
                        "x": 0,
                        "y": 0
                    }
                ]
            ],
            "selectedLocationType": "pin"
        },
        "extendedData": {
            "costCode": "string",
            "estimatedCost": [
                {
                    "cost": 0,
                    "coveredBy": "5f479169f7ef7fe33b3cca36"
                }
            ],
            "finalCost": [
                {
                    "outstanding": 0,
                    "settled": 0,
                    "coveredBy": "5f479169f7ef7fe33b3cca36"
                }
            ],
            "finalCompletionDate": "2020-12-01T11:32:01+01:00",
            "targetCompletionDate": "2020-12-01T11:32:01+01:00",
            "impact": "5f479169f7ef7fe33b3cca36",
            "proposedCorrectiveAction": "5f479169f7ef7fe33b3cca36",
            "rootCauses": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "solutionMethod": "string",
            "solutionProposal": "string",
            "subcontractorRepresentative": "string",
            "workTypes": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "effect": "5f479169f7ef7fe33b3cca36",
            "daysOfInabilityToWork": 0,
            "personUnableToWork": "string",
            "circumstances": "5f479169f7ef7fe33b3cca36",
            "environmentalAspect": "5f479169f7ef7fe33b3cca36"
        },
        "mainImage": "5f479169f7ef7fe33b3cca36"
    }
]
Previous
Get changelog
Next
Edit access
Built with