Update Time and Actions Production status
PUThttps://sight.inspectorio.com/api/v2/time-and-actions/:ta_id/production-status
Update Time and Actions Production status
Request​
Path Parameters
ta_id stringrequired
Id of a Time and Action
- application/json
Body
idstringnullable
Id of a Time and Action
Example:
34c75453-3ec6-4822-9e9a-9addc6076b3c
milestones object[]nullable
productionStatusLevelstringrequired
Update production status by PO or item level
Possible values: [poLevel
, itemLevel
]
productionStatusUntildaterequired
Time when the production status data is valid. If it is empty system will pre-fill it with the current date. Only past and current dates are allowed
Example:
2022-12-12
Responses​
- 200
- 400
- 401
- 429
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"id": "34c75453-3ec6-4822-9e9a-9addc6076b3c",
"milestones": [
{
"actualEndDate": "2022-12-12",
"actualStartDate": "2022-12-12",
"id": "1234f24e-54f6-4326-b4d3-402d52af291a",
"items": [
{
"itemId": "120-230-1234",
"itemQty": 100
}
],
"poNumber": "8124125",
"quantity": 100
}
],
"productionStatusLevel": "poLevel",
"productionStatusUntil": "2022-12-12"
}
}
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"
}
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 -X PUT 'https://sight.inspectorio.com/api/v2/time-and-actions/:ta_id/production-status' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'apiKey: <apiKey>' \
-d '{
"id": "34c75453-3ec6-4822-9e9a-9addc6076b3c",
"milestones": [
{
"actualEndDate": "2022-12-12",
"actualStartDate": "2022-12-12",
"id": "1234f24e-54f6-4326-b4d3-402d52af291a",
"items": [
{
"itemId": "120-230-1234",
"itemQty": 100
}
],
"poNumber": "8124125",
"quantity": 100
}
],
"productionStatusLevel": "poLevel",
"productionStatusUntil": "2022-12-12"
}'
ResponseClear