Skip to main content

Update Time and Actions Production status

PUT 

https://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

Body

    idstringnullable

    Id of a Time and Action

    Example: 34c75453-3ec6-4822-9e9a-9addc6076b3c
    milestones object[]nullable

    Milestones information

  • Array [
  • actualEndDatedatenullable

    The actual end date of a milestone

    Example: 2022-12-12
    actualStartDatedatenullable

    The actual start date of a milestone

    Example: 2022-12-12
    idstringrequired

    ID of a milestone

    Possible values: non-empty

    Example: 1234f24e-54f6-4326-b4d3-402d52af291a
    items object[]nullable

    Items information

  • Array [
  • itemIdstringrequired

    Item IDs included in the Time and Action

    Possible values: non-empty

    Example: 120-230-1234
    itemQtyinteger

    completed order quantity of a item for a milestone

    Example: 100
  • ]
  • poNumberstringrequired

    Purchase order number linked with the Time and Action

    Possible values: non-empty

    Example: 8124125
    quantityinteger

    Completed order quantity in a milestone

    Example: 100
  • ]
  • 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​

OK

Schema
    data object

    Time and Action data

    idstringnullable

    Id of a Time and Action

    Example: 34c75453-3ec6-4822-9e9a-9addc6076b3c
    milestones object[]nullable

    Milestones information

  • Array [
  • actualEndDatedatenullable

    The actual end date of a milestone

    Example: 2022-12-12
    actualStartDatedatenullable

    The actual start date of a milestone

    Example: 2022-12-12
    idstringrequired

    ID of a milestone

    Possible values: non-empty

    Example: 1234f24e-54f6-4326-b4d3-402d52af291a
    items object[]nullable

    Items information

  • Array [
  • itemIdstringrequired

    Item IDs included in the Time and Action

    Possible values: non-empty

    Example: 120-230-1234
    itemQtyinteger

    completed order quantity of a item for a milestone

    Example: 100
  • ]
  • poNumberstringrequired

    Purchase order number linked with the Time and Action

    Possible values: non-empty

    Example: 8124125
    quantityinteger

    Completed order quantity in a milestone

    Example: 100
  • ]
  • 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

Authorization: apiKey

name: apiKeytype: apiKeyin: header
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"
}'
Request Collapse all
Base URL
https://sight.inspectorio.com
Auth
Parameters
— pathrequired
Body
{
  "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

Click the Send API Request button above and see the response here!