Hustro API
  1. Inspection
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
      POST
    • Update Checklist Item
      PUT
    • Delete Checklist Item
      DELETE
  • 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
    • Create issue
    • Get single issue
    • Update issue
    • Delete issue
    • Restore issue
    • Get changelog
    • Get inspection issues
  • Issue access
    • Edit access
    • Delete access
    • Create access item
  • Inspection
    • Get all inspections
      GET
    • Create new inspection
      POST
    • Edit inspection
      PUT
    • Get single inspection
      GET
  • 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. Inspection

Get all inspections

GET
https://app.hustro.com/api/v2/project/{projectId}/inspection
OperationId:getInspections
Get all inspections from a project.

Request

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

Header Params

Responses

🟢200OK
application/json
successful operation
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://app.hustro.com/api/v2/project//inspection' \
--header 'hustro-client: m2m' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
Response Response Example
{
    "inspections": [
        {
            "template": "5f479169f7ef7fe33b3cca36",
            "protocol": [
                {
                    "_id": "5f479169f7ef7fe33b3cca36",
                    "modifiedAt": "2020-12-01T11:32:01+01:00",
                    "modifiedBy": "string",
                    "templateChecklistItem": "5f479169f7ef7fe33b3cca36",
                    "complianceCheck": {
                        "documents": [
                            {
                                "data": {
                                    "do uzupelnienia": "Do uzupełnienia, analogicznie jak dotychczas"
                                },
                                "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",
                                "description": "string",
                                "fileName": "4.jpg",
                                "fileType": "image/jpeg"
                            }
                        ],
                        "issues": [
                            "5e417e81cc65ea28d1ff0fac",
                            "6396dfeca92a10590a6ada9b"
                        ]
                    }
                }
            ],
            "comment": "Inspekcja jakościowa stolarki okiennej",
            "inspectionDate": "2020-12-01T11:32:01+01:00",
            "isCompleted": true,
            "site": "5f479169f7ef7fe33b3cca36",
            "levels": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "controlledParty": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "workTypes": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "contracts": [
                "5e417e81cc65ea28d1ff0fac",
                "6396dfeca92a10590a6ada9b"
            ],
            "deleted": true,
            "_id": "5f479169f7ef7fe33b3cca36",
            "createdAt": "2020-12-01T11:32:01+01:00",
            "createdBy": "5f479169f7ef7fe33b3cca36",
            "modifiedAt": "2020-12-01T11:32:01+01:00",
            "modifiedBy": "5f479169f7ef7fe33b3cca36"
        }
    ]
}
Previous
Create access item
Next
Create new inspection
Built with