| GET | /v1/import/history |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ImportHistoryRequest
{
}
open class ImportHistoryResponse
{
open var Batches:ArrayList<ImportBatchLog> = ArrayList<ImportBatchLog>()
open var ResponseStatus:ResponseStatus? = null
}
open class ImportBatchLog
{
open var ImportBatchId:Int? = null
open var BatchUID:UUID? = null
open var ImportType:String? = null
open var FileName:String? = null
open var Status:String? = null
open var TotalRows:Int? = null
open var InsertedRows:Int? = null
open var UpdatedRows:Int? = null
open var SkippedRows:Int? = null
open var ErrorRows:Int? = null
open var CreatedBy:String? = null
open var CreatedAt:Date? = null
}
Kotlin ImportHistoryRequest DTOs
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.
GET /v1/import/history HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}