POST api/Data/uploadToDataTable
Uploads a list of rows and column data to a CMAP datatable
Request Information
URI Parameters
None.
Body Parameters
Contains the table ID, field and dataset
uploadToDataTableParam| Name | Description | Type | Additional information |
|---|---|---|---|
| tableId |
The table id to upload the data to (see Administration > General and Security > Data Tables for a list of ids |
string |
None. |
| field |
The field associated to the datatable found in Administration > General and Security > Dictionary |
string |
None. |
| data |
A JSON array of fields matching the columns from the datatable |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"tableId": "sample string 1",
"field": "sample string 2",
"data": "sample string 3"
}
application/xml, text/xml
Sample:
<DataController.uploadToDataTableParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMAPWebAPI.Controllers"> <data>sample string 3</data> <field>sample string 2</field> <tableId>sample string 1</tableId> </DataController.uploadToDataTableParam>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>