| GET | /v1/import/history |
|---|
"use strict";
export class ImportBatchLog {
/** @param {{ImportBatchId?:number,BatchUID?:string,ImportType?:string,FileName?:string,Status?:string,TotalRows?:number,InsertedRows?:number,UpdatedRows?:number,SkippedRows?:number,ErrorRows?:number,CreatedBy?:string,CreatedAt?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ImportBatchId;
/** @type {string} */
BatchUID;
/** @type {string} */
ImportType;
/** @type {string} */
FileName;
/** @type {string} */
Status;
/** @type {number} */
TotalRows;
/** @type {number} */
InsertedRows;
/** @type {number} */
UpdatedRows;
/** @type {number} */
SkippedRows;
/** @type {number} */
ErrorRows;
/** @type {string} */
CreatedBy;
/** @type {string} */
CreatedAt;
}
export class ImportHistoryResponse {
/** @param {{Batches?:ImportBatchLog[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ImportBatchLog[]} */
Batches = [];
/** @type {ResponseStatus} */
ResponseStatus;
}
export class ImportHistoryRequest {
constructor(init) { Object.assign(this, init) }
}
JavaScript ImportHistoryRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}