| GET | /v1/import/{ImportBatchId}/errors |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ImportErrorsRequest
{
public Integer ImportBatchId = null;
public Integer getImportBatchId() { return ImportBatchId; }
public ImportErrorsRequest setImportBatchId(Integer value) { this.ImportBatchId = value; return this; }
}
public static class ImportErrorsResponse
{
public ArrayList<ImportBatchErrorRow> Rows = new ArrayList<ImportBatchErrorRow>();
public ResponseStatus ResponseStatus = null;
public ArrayList<ImportBatchErrorRow> getRows() { return Rows; }
public ImportErrorsResponse setRows(ArrayList<ImportBatchErrorRow> value) { this.Rows = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ImportErrorsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class ImportBatchErrorRow
{
public Integer RowNumber = null;
public String Field = null;
public String Message = null;
public Integer getRowNumber() { return RowNumber; }
public ImportBatchErrorRow setRowNumber(Integer value) { this.RowNumber = value; return this; }
public String getField() { return Field; }
public ImportBatchErrorRow setField(String value) { this.Field = value; return this; }
public String getMessage() { return Message; }
public ImportBatchErrorRow setMessage(String value) { this.Message = value; return this; }
}
}
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.
GET /v1/import/{ImportBatchId}/errors HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Rows:
[
{
RowNumber: 0,
Field: String,
Message: String
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}