| POST,OPTIONS | /v1/import/{Type}/preview |
|---|
| 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/import/{Type}/preview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Type: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
}
}