| POST,OPTIONS | /v1/import/{Type}/commit |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Type | path | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ImportType | form | string | No | |
| FileName | form | string | No | |
| DryRun | form | bool | No | |
| ImportBatchId | form | int | No | |
| TotalRows | form | int | No | |
| NewRows | form | int | No | |
| UpdatedRows | form | int | No | |
| SkippedRows | form | int | No | |
| ErrorRows | form | int | No | |
| Rows | form | List<ImportRowResult> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Line | form | int | No | |
| Action | form | string | No | |
| Field | form | string | No | |
| Message | form | string | No | |
| Summary | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/import/{Type}/commit HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Type":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ImportType":"String","FileName":"String","DryRun":false,"ImportBatchId":0,"TotalRows":0,"NewRows":0,"UpdatedRows":0,"SkippedRows":0,"ErrorRows":0,"Rows":[{"Line":0,"Action":"String","Field":"String","Message":"String","Summary":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}