Update the Order of an Item

Use the following details to update the order of an Item using the REST interface:

HTTP Method

PUT

Endpoint URL

See the REST Service Endpoint topic for more details.

Resource

/restapi/v1/item/{id}/order/{orderId}

Request Parameters

Provide values for the following parameters:

Parameter Name Data Type Mandatory
id string Yes
orderId string Yes
id string No
lineAction string No
lineActionMode string No
LineNumber string No
orderDate dateTime No
orderRef string No
planItemAction string No
planItemId string No
sid   No
stringComments string No

Request Model

Media Type: application/json

{
  "id": "string",
  "lineAction": "string",
  "lineActionMode": "string",
  "lineNumber": "string",
  "orderDate": "2016-07-31T05:17:58.828Z",
  "orderRef": "string",
  "planItemAction": "string",
  "planItemId": "string",
  "sid": 0,
  "stringComments": [
    "string"
  ]
}

Response Model

{
  "result": {
    "code": {
      "severity": "Success",
      "message": "Success.",
      "code": "0000"
    },
    "params": [],
    "message": "Success."
  },
  "data": {
    "sid": 0,
    "id": "string",
    "orderRef": "string",
    "orderDate": "2022-08-05T13:21:05.779+0000",
    "lineNumber": "string",
    "lineAction": "string",
    "lineActionMode": "string",
    "planItemId": "string",
    "planItemAction": "string",
    "stringComments": [
      "string"
    ]
  },
  "startTimestampMS": 1659706248081,
  "duration": 362
}