POST api/Data/uploadData
Creates, Updates or Deletes a set of data by item type (this functions in the same way as an Item Update action - see Administration > Calculations > Action Manager for examples)
Request Information
URI Parameters
None.
Body Parameters
Contains the item type, item Data (a JSON array of data to create/update/delete) and the update Type (e.g. U, D, I, IU)
uploadDataParam| Name | Description | Type | Additional information |
|---|---|---|---|
| itemType |
The CMAP item type (e.g. BOM, PART, SUBPART, SALES, etc...) |
string |
None. |
| itemData |
A JSON array of fields and values which matches the underlying table schema for the given item type |
string |
None. |
| updateType |
The update type for the item type (either U, I, D, IU) |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"itemType": "sample string 1",
"itemData": "sample string 2",
"updateType": "sample string 3"
}
application/xml, text/xml
Sample:
<DataController.uploadDataParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMAPWebAPI.Controllers"> <itemData>sample string 2</itemData> <itemType>sample string 1</itemType> <updateType>sample string 3</updateType> </DataController.uploadDataParam>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.