List Time and Actions
GEThttps://sight.inspectorio.com/api/v1/time-and-actions
List Time and Actions
Request​
Query Parameters
po_number string
Number of the purchase order
limit integer
Possible values: >= 1
and <= 100
Limit result of list
Default value:
10
created_to date-time
End date of the range when time and actions were created
updated_to date-time
End date of the range when time and actions were updated
offset integer
Possible values: >= 0
Default value:
0
updated_from date-time
Start date of the range when time and actions were updated
created_from date-time
Start date of the range when time and actions were created
status string
Possible values: [UPCOMING
, NEW
, IN-PROGRESS
, CANCELED
, ABORTED
, COMPLETED
]
Status of the Time and Action
Responses​
- 200
- 400
- 401
- 422
- 429
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
data object[]
limitintegerrequired
Possible values: >= 1
and <= 100
offsetintegerrequired
Possible values: >= 0
totalintegerrequired
{
"data": [
{
"createdDate": "2021-06-03 07:18:05.372000+00:00",
"id": "34c75453-3ec6-4822-9e9a-9addc6076b3c",
"number": "TA1",
"poNumbers": [
"PO1",
"PO2"
],
"status": "NEW",
"updatedDate": "2021-06-03 08:27:21.316000+00:00"
}
],
"limit": 0,
"offset": 0,
"total": 0
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Bad Request
{
"errorCode": "Generic",
"message": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Cannot retrieve session data because of expired token
{
"errorCode": "Generic",
"message": "Cannot retrieve session data because of expired token"
}
Validation Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"type":["Input type is not valid"]}
messagestring
Example:
Validation error
{
"errorCode": "Generic",
"errors": {
"type": [
"Input type is not valid"
]
},
"message": "Validation error"
}
Rate-limiting Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Too many requests
{
"errorCode": "Generic",
"message": "Too many requests"
}
Internal Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"system":["Internal error detail message"]}
messagestring
Example:
Internal server error
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
Authorization: apiKey
name: apiKeytype: apiKeyin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://sight.inspectorio.com/api/v1/time-and-actions' \
-H 'Accept: application/json' \
-H 'apiKey: <apiKey>'
ResponseClear