Help

List inspections (preventive maintenance).

List inspections (preventive maintenance).

GET
/inspections

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

$search?string
assetIds?array<>
topAssetIds?array<>
$filter?string
$orderby?string
$select?string
$expand?string
$count?boolean
$top?integer

Page size. Host OData:MaxTop is 10000.

Range0 <= value <= 10000
$skip?integer
Range0 <= value

Header Parameters

Olify-Tenant-Id*string

Tenant GUID the caller is allowed to access.

Formatuuid

Response Body

Inspection

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/inspections" \  -H "Olify-Tenant-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "value": [    {      "dateSortable": "2019-08-24",      "team": {        "company": {          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "description": "string",        "areMembersTicketFollowers": true,        "notifyMembersAboutInspections": true,        "membersCount": "string",        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "solver": {        "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"      },      "supplier": {        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "inspectionSeries": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "isDefault": true,        "locality": {          "region": {            "code": "string",            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "customer": {            "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"          },          "code": "string",          "name": "string",          "note": "string",          "address": {            "streetAddress1": "string",            "streetAddress2": "string",            "streetAddress3": "string",            "city": "string",            "cityDistrict": "string",            "postalCode": "string",            "coordinates": {              "latitude": "string",              "longitude": "string"            },            "countryCode": "string"          },          "levelEntityCategoryId": "32f29979-b26a-4b9a-aa34-af49e6995ee1",          "levelEntityCategory": {            "code": "string",            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "extensionValues": {},          "creationDate": "2019-08-24T14:15:22Z",          "lastChangeDate": "2019-08-24T14:15:22Z",          "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "regulation": {          "kind": "Inspection",          "norm": "string",          "validFrom": null,          "validTo": null,          "regulationSet": {            "code": "string",            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "regulationDomain": {            "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",            "iconName": "string",            "colorName": "string",            "names": {              "property1": "string",              "property2": "string"            },            "code": "string",            "name": "string",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"          },          "checklistIds": [            "fe7e5749-9ad2-4b49-bdef-d971d8430447"          ],          "inspectionTypeIds": [            "4d6917f4-fc40-4351-9683-ab7a3cbd1cbf"          ],          "creationDate": "2019-08-24T14:15:22Z",          "lastChangeDate": "2019-08-24T14:15:22Z",          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "assetIds": [          "96fa1cd8-4f1c-475e-ac07-c52694e711b7"        ],        "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969"      },      "assetIds": [        "96fa1cd8-4f1c-475e-ac07-c52694e711b7"      ],      "commonAssetTypeAncestor": {        "displayStyleName": "string",        "isHidden": true,        "selfAndAllParentIds": [          "32e490ae-cf06-4c84-ac7d-cdc788303a4e"        ],        "code": "string",        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "assetCount": "string",      "firstAsset": {        "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": null,        "lastCommissioningDate": null,        "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"      },      "assetGroupIds": [        "8da01877-f9bc-4850-bad0-015de5d25ce0"      ],      "assetGroupCount": "string",      "firstAssetGroup": {        "names": {          "property1": "string",          "property2": "string"        },        "qrCode": "string",        "name": "string",        "description": "string",        "styleName": "string",        "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",        "locality": {          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "isFavorite": true,        "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "notes": "string",      "calendarDate": null,      "creationDate": null,      "lastChangeDate": null,      "unresolvedTicketCount": "string",      "totalTicketCount": "string",      "regulationKind": "Inspection",      "state": "Draft",      "regulation": {        "kind": "Inspection",        "norm": "string",        "validFrom": null,        "validTo": null,        "regulationSet": {          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "regulationDomain": {          "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",          "iconName": "string",          "colorName": "string",          "names": {            "property1": "string",            "property2": "string"          },          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "checklistIds": [          "fe7e5749-9ad2-4b49-bdef-d971d8430447"        ],        "inspectionTypeIds": [          "4d6917f4-fc40-4351-9683-ab7a3cbd1cbf"        ],        "creationDate": "2019-08-24T14:15:22Z",        "lastChangeDate": "2019-08-24T14:15:22Z",        "code": "string",        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "inspectionType": {        "isArchived": true,        "documentDemand": "Optional",        "classification": "Legislation",        "hasInitialPeriodicity": true,        "code": "string",        "name": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "locality": {        "region": {          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "customer": {          "roles": null,          "identificationNumber": "string",          "emailAddress": "string",          "phoneNumber": "string",          "address": null,          "extensionValues": null,          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "code": "string",        "name": "string",        "note": "string",        "address": {          "streetAddress1": "string",          "streetAddress2": "string",          "streetAddress3": "string",          "city": "string",          "cityDistrict": "string",          "postalCode": "string",          "coordinates": null,          "countryCode": "string"        },        "levelEntityCategoryId": "32f29979-b26a-4b9a-aa34-af49e6995ee1",        "levelEntityCategory": {          "code": "string",          "name": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "extensionValues": {},        "creationDate": "2019-08-24T14:15:22Z",        "lastChangeDate": "2019-08-24T14:15:22Z",        "classId": "f0846d40-4884-40d5-8fc5-9f2c5ef371c4",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "localityId": "9b71895f-8a69-4102-a04b-0d26c0eb6f9d",      "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",      "scheduledDate": null,      "requiredOnDate": null,      "validFrom": null,      "date": null,      "periodicities": [        {          "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"        }      ],      "teamId": "a4ede8ba-7c0a-4485-8763-cbd9b282fbec",      "solverId": "215539d0-87f9-4694-804b-08fccd761ff8",      "reportMissing": true,      "confirmationMissing": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"    }  ],  "count": 0}