| GET | /v1/import/history |
|---|
export class ImportBatchLog
{
public ImportBatchId: number;
public BatchUID: string;
public ImportType: string;
public FileName: string;
public Status: string;
public TotalRows: number;
public InsertedRows: number;
public UpdatedRows: number;
public SkippedRows: number;
public ErrorRows: number;
public CreatedBy: string;
public CreatedAt: string;
public constructor(init?: Partial<ImportBatchLog>) { (Object as any).assign(this, init); }
}
export class ImportHistoryResponse
{
public Batches: ImportBatchLog[] = [];
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<ImportHistoryResponse>) { (Object as any).assign(this, init); }
}
export class ImportHistoryRequest
{
public constructor(init?: Partial<ImportHistoryRequest>) { (Object as any).assign(this, init); }
}
TypeScript ImportHistoryRequest DTOs
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/history HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Batches:
[
{
ImportBatchId: 0,
BatchUID: 00000000000000000000000000000000,
ImportType: String,
FileName: String,
Status: String,
TotalRows: 0,
InsertedRows: 0,
UpdatedRows: 0,
SkippedRows: 0,
ErrorRows: 0,
CreatedBy: String,
CreatedAt: 0001-01-01
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}