Nápověda

Get inspection records together with assets still pending.

Get inspection records together with assets still pending.

GET
/inspections/{id}/inspection-records-and-pending-assets

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /directory/connect/token. Scope olifyapi.

In: header

Path Parameters

id*string
Formatuuid

Header Parameters

Olify-Tenant-Id*string

Tenant GUID the caller is allowed to access.

Formatuuid

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/inspections/497f6eca-6276-4993-bfeb-53cbbbba6f08/inspection-records-and-pending-assets" \  -H "Olify-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "pendingAssets": [    {      "id": "string",      "asset": {        "code": "string",        "name": "string",        "typeName": "string",        "manufacturerName": "string",        "serialNumber": "string",        "registrationNumber": "string",        "assetType": {          "displayStyleName": "string",          "isHidden": true,          "selfAndAllParentIds": [            "32e490ae-cf06-4c84-ac7d-cdc788303a4e"          ],          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",        "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",        "parentAssetId": "393bf9f5-484e-4036-a332-e8890cfb10d2",        "topLevelAssetId": "08d1794f-a31b-4e14-b3eb-894b044c9cef",        "assetTypeOptionIds": [          "40c653fd-6987-438f-a2d2-ccdc1954fa8d"        ],        "optionSetValidity": "Valid",        "yearOfManufacture": "string",        "commissioningDate": "2019-08-24",        "lastCommissioningDate": "2019-08-24",        "count": "string",        "state": "Draft",        "assetKind": "Line",        "assetGroupIds": [          "8da01877-f9bc-4850-bad0-015de5d25ce0"        ],        "extensionValues": {},        "creationDate": "2019-08-24T14:15:22Z",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "periodicity": {        "type": "TimeBased",        "timePeriodicity": {          "years": "string",          "months": "string",          "weeks": "string",          "days": "string",          "hours": "string",          "minutes": "string",          "seconds": "string",          "isZero": true,          "totalDaysApproximate": "string"        },        "calendarPeriodicity": {          "daysOfWeek": [            "None"          ],          "dayOfMonth": "string",          "totalDaysApproximate": "string"        },        "adjustedByLastInspection": true,        "totalDaysApproximate": "string"      },      "requiredOnDate": "2019-08-24"    }  ],  "inspectionRecords": [    {      "inspectionId": "6b2709b5-9975-4d76-a70e-c292a6d5ef34",      "createDate": "2019-08-24T14:15:22Z",      "inspectorName": "string",      "assets": [        {          "id": "string",          "asset": {            "code": "string",            "name": "string",            "typeName": "string",            "manufacturerName": "string",            "serialNumber": "string",            "registrationNumber": "string",            "assetType": {              "displayStyleName": "string",              "isHidden": true,              "selfAndAllParentIds": [                "32e490ae-cf06-4c84-ac7d-cdc788303a4e"              ],              "code": "string",              "name": "string",              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"            },            "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",            "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",            "parentAssetId": "393bf9f5-484e-4036-a332-e8890cfb10d2",            "topLevelAssetId": "08d1794f-a31b-4e14-b3eb-894b044c9cef",            "assetTypeOptionIds": [              "40c653fd-6987-438f-a2d2-ccdc1954fa8d"            ],            "optionSetValidity": "Valid",            "yearOfManufacture": "string",            "commissioningDate": "2019-08-24",            "lastCommissioningDate": "2019-08-24",            "count": "string",            "state": "Draft",            "assetKind": "Line",            "assetGroupIds": [              "8da01877-f9bc-4850-bad0-015de5d25ce0"            ],            "extensionValues": {},            "creationDate": "2019-08-24T14:15:22Z",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "periodicity": {            "type": "TimeBased",            "timePeriodicity": {              "years": "string",              "months": "string",              "weeks": "string",              "days": "string",              "hours": "string",              "minutes": "string",              "seconds": "string",              "isZero": true,              "totalDaysApproximate": "string"            },            "calendarPeriodicity": {              "daysOfWeek": [                "None"              ],              "dayOfMonth": "string",              "totalDaysApproximate": "string"            },            "adjustedByLastInspection": true,            "totalDaysApproximate": "string"          },          "requiredOnDate": "2019-08-24"        }      ],      "reports": [        {          "name": "string",          "description": "string",          "documentVersion": "string",          "created": "2019-08-24T14:15:22Z",          "lastChange": "2019-08-24T14:15:22Z",          "createdBy": {            "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",            "userName": "string",            "person": {              "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",              "firstName": "string",              "lastName": "string",              "company": {                "name": "string",                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"              },              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"            },            "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093",            "tenantUser": {              "isAppUser": true,              "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",              "company": {                "roles": [                  "Manufacturer"                ],                "identificationNumber": "string",                "emailAddress": "string",                "phoneNumber": "string",                "address": {                  "streetAddress1": "string",                  "streetAddress2": "string",                  "streetAddress3": "string",                  "city": "string",                  "cityDistrict": "string",                  "postalCode": "string",                  "coordinates": {                    "latitude": "string",                    "longitude": "string"                  },                  "countryCode": "string"                },                "extensionValues": {},                "name": "string",                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"              },              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"            },            "isSoftDeleted": true,            "sortableFullName": "string",            "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "lastModifiedBy": {            "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",            "userName": "string",            "person": {              "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",              "firstName": "string",              "lastName": "string",              "company": {                "name": "string",                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"              },              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"            },            "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093",            "tenantUser": {              "isAppUser": true,              "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",              "company": {                "roles": [                  "Manufacturer"                ],                "identificationNumber": "string",                "emailAddress": "string",                "phoneNumber": "string",                "address": {                  "streetAddress1": "string",                  "streetAddress2": "string",                  "streetAddress3": "string",                  "city": "string",                  "cityDistrict": "string",                  "postalCode": "string",                  "coordinates": {                    "latitude": "string",                    "longitude": "string"                  },                  "countryCode": "string"                },                "extensionValues": {},                "name": "string",                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"              },              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"            },            "isSoftDeleted": true,            "sortableFullName": "string",            "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "documentFolderId": "7b1a2b3f-2524-4e05-8b89-7cd6a7e89e2f",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        }      ],      "checklistInstance": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "inspectionId": "6b2709b5-9975-4d76-a70e-c292a6d5ef34",        "startTime": "2019-08-24T14:15:22Z",        "finishTime": "2019-08-24T14:15:22Z",        "checklistIds": [          "fe7e5749-9ad2-4b49-bdef-d971d8430447"        ],        "state": "InProgress"      },      "confirmDate": "2019-08-24T14:15:22Z",      "confirmUser": {        "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",        "userName": "string",        "person": {          "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",          "firstName": "string",          "lastName": "string",          "company": {            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093",        "tenantUser": {          "isAppUser": true,          "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",          "company": {            "roles": [              "Manufacturer"            ],            "identificationNumber": "string",            "emailAddress": "string",            "phoneNumber": "string",            "address": {              "streetAddress1": "string",              "streetAddress2": "string",              "streetAddress3": "string",              "city": "string",              "cityDistrict": "string",              "postalCode": "string",              "coordinates": {                "latitude": "string",                "longitude": "string"              },              "countryCode": "string"            },            "extensionValues": {},            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "isSoftDeleted": true,        "sortableFullName": "string",        "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "creationUser": {        "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",        "userName": "string",        "person": {          "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4",          "firstName": "string",          "lastName": "string",          "company": {            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "tenantUserId": "317fdf58-24a9-48e5-8924-89e6013f4093",        "tenantUser": {          "isAppUser": true,          "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",          "company": {            "roles": [              "Manufacturer"            ],            "identificationNumber": "string",            "emailAddress": "string",            "phoneNumber": "string",            "address": {              "streetAddress1": "string",              "streetAddress2": "string",              "streetAddress3": "string",              "city": "string",              "cityDistrict": "string",              "postalCode": "string",              "coordinates": {                "latitude": "string",                "longitude": "string"              },              "countryCode": "string"            },            "extensionValues": {},            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "isSoftDeleted": true,        "sortableFullName": "string",        "avatarAttachmentId": "4f97b030-3bac-45e5-82f0-8fdcfd120829",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "number": "string",      "validFrom": "2019-08-24",      "validTo": "2019-08-24",      "reportIds": [        "32ed7889-fef6-42d4-8485-b2a9ae33465a"      ],      "isConfirmed": true    }  ],  "assetTickets": {    "property1": [      {        "code": "string",        "subject": "string",        "description": "string",        "state": {          "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",          "isDefaultForStateGroup": true,          "name": "string",          "stateGroupId": "0f7c32d9-684f-459f-91fa-95c70d9393c1",          "isApproval": true,          "isWorkOrder": true,          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "ticketType": {          "name": "string",          "ticketClassId": "03bdc7cc-714a-4b68-8cf3-31996c553b26",          "iconName": "string",          "colorName": "string",          "ticketWorkflowId": "16d14ac3-8b02-4f43-8071-dd98304924ed",          "extensionAttributeDefinitions": [            {              "extensionAttributeId": "cfe3e118-9a5a-43fd-88b3-c11687ecaccb",              "required": true            }          ],          "defaultStatus": "Down",          "defaultReason": "Failure",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "reportDate": "2019-08-24T14:15:22Z",        "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      }    ],    "property2": [      {        "code": "string",        "subject": "string",        "description": "string",        "state": {          "workflowId": "43c4fa9b-0cbc-4b57-a121-9d7d46a3eaa4",          "isDefaultForStateGroup": true,          "name": "string",          "stateGroupId": "0f7c32d9-684f-459f-91fa-95c70d9393c1",          "isApproval": true,          "isWorkOrder": true,          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "ticketType": {          "name": "string",          "ticketClassId": "03bdc7cc-714a-4b68-8cf3-31996c553b26",          "iconName": "string",          "colorName": "string",          "ticketWorkflowId": "16d14ac3-8b02-4f43-8071-dd98304924ed",          "extensionAttributeDefinitions": [            {              "extensionAttributeId": "cfe3e118-9a5a-43fd-88b3-c11687ecaccb",              "required": true            }          ],          "defaultStatus": "Down",          "defaultReason": "Failure",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "reportDate": "2019-08-24T14:15:22Z",        "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      }    ]  }}