Get Lab Test Package Detail
GEThttps://sight.inspectorio.com/api/v1/lab-tests/test-packages/:package_id
Get Lab Test Package Detail
Request​
Path Parameters
package_id stringrequired
Package ID
Query Parameters
dataProvider string
Data Provider ID
Responses​
- 200
- 400
- 401
- 404
Get Lab Test Package Detail
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"id": "PKG-001",
"name": "Physical Testing Package",
"description": "Standard physical testing package for apparel",
"revision": "Rev 2.1",
"enabled": true,
"labTestTypes": [
{
"shortName": "PHY",
"fullName": "Physical Testing"
}
],
"productLines": [
{
"id": "PL-001",
"name": "Apparel"
}
],
"labTestProperties": [
{
"id": "TP-001",
"name": "Color Fastness to Washing",
"standard": "ISO 105-C06",
"revision": "A2S",
"revisionYear": 2021,
"validityDuration": 365,
"conditions": 5
}
],
"viewingPermissions": "selected_orgs",
"selectedOrgs": [
{
"name": "Acme Testing Labs"
}
]
}
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
detailstring
Example:
Org {data_provider} not found.
codeinteger
Example:
400
statusinteger
Example:
400
{
"detail": "Org {data_provider} not found.",
"code": 400,
"status": 400
}
Unauthorized
- text/plain
- Schema
- Example (auto)
Schema
stringstring
Example:
auth or apikey header(s) not exists
"auth or apikey header(s) not exists"
Lab Test Package Not Found
- application/json
- Schema
- Example (auto)
Schema
detailstring
Example:
Not found.
codeinteger
Example:
404
statusinteger
Example:
404
{
"detail": "Not found.",
"code": 404,
"status": 404
}
Authorization: apiKey
name: apiKeytype: apiKeyin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://sight.inspectorio.com/api/v1/lab-tests/test-packages/:package_id' \
-H 'Accept: application/json' \
-H 'apiKey: <apiKey>'
ResponseClear