POST

POST can be used for POST and PUT.

If the item Version does not exist, the the system creates it.

If the item Version exists, an update is made.

 

Note:

If you have more than one Item Version, you must define this Version by Version.

It is not possible to define all Versions during the creation of the item itself. First you must define the item and then the related item versions.

The ItemVersionStatus must be defined before.

 

All fields of itemVersion are changeable (not ItemCode,IVersionId)

Changes are saved in the activity log of the item version.

Note: If Status is not defined, the system uses the first statusId from the status definition table.

 

Return value

The system returns error information or the created / updated itemcode.

Error Example:

{ "error": {

      "code": 400,

      "message": {

          "lang": "en-us",

          "value": "unknown property dradwingnumber"

       }

  }

}

OK - Example

{
   "value":"0006", // the ItemVersion
   "transaction":"update" // or create
}