Add an Item

Use the following details to add an Item using the REST interface:

HTTP Method

POST

Endpoint URL

See the REST Service Endpoint topic for more details.

Resource

/restapi/v1/item

Request Parameters

Provide values for the following parameters

Parameter Name Data Type Mandatory
createdBy string No
createdOn dateTime No
deleted boolean No
endDate dateTime No
id string No
lastUpdatedBy string No
locked boolean No
name string No
ownedBy string No
partyId string Yes
productID string Yes
productVersion string No
ref string No
startDate dateTime Yes
status string Yes
subType string No
type string Yes
updatedOn dateTime No
version   No

Request Model

Media Type: application/json

{
  "createdBy": "string",
  "createdOn": "2016-07-31T05:17:58.828Z",
  "deleted": true,
  "endDate": "2016-07-31T05:17:58.828Z",
  "id": "string",
  "lastUpdatedBy": "string",
  "locked": true,
  "name": "string",
  "ownedBy": "string",
  "partyId": "string",
  "productId": "string",
  "productVersion": "string",
  "ref": "string",
  "startDate": "2016-07-31T05:17:58.828Z",
  "status": "string",
  "subType": "string",
  "type": "string",
  "updatedOn": "2016-07-31T05:17:58.828Z",
  "version": 0
}

Response Model

{
  "result": {
    "code": {
      "severity": "Success",
      "message": "Success.",
      "code": "0000"
    },
    "params": [],
    "message": "Success."
  },
  "data": {
    "version": 1,
    "type": "string",
    "id": "string",
    "status": "string",
    "locked": true,
    "subType": "string",
    "tenantId": "string",
    "batch": null,
    "updatedOn": "2022-08-05T10:52:58.641+0000",
    "ref": "string",
    "createdBy": "string",
    "createdOn": "2022-08-05T10:52:58.641+0000",
    "ownedBy": "string",
    "lastUpdatedBy": "string",
    "deleted": false,
    "productId": "string",
    "productVersion": "string",
    "partyId": "string",
    "startDate": "2022-07-20T10:34:08.643+0000",
    "endDate": "2022-07-20T10:34:08.643+0000",
    "name": "string"
  },
  "startTimestampMS": 1659696778601,
  "duration": 123
}