Trendsic Platform Service

<back to all web services

ImportHistoryRequest

Requires Authentication
The following routes are available for this service:
GET/v1/import/history
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ImportBatchLog() = 
        member val ImportBatchId:Int32 = new Int32() with get,set
        member val BatchUID:Guid = new Guid() with get,set
        member val ImportType:String = null with get,set
        member val FileName:String = null with get,set
        member val Status:String = null with get,set
        member val TotalRows:Int32 = new Int32() with get,set
        member val InsertedRows:Int32 = new Int32() with get,set
        member val UpdatedRows:Int32 = new Int32() with get,set
        member val SkippedRows:Int32 = new Int32() with get,set
        member val ErrorRows:Int32 = new Int32() with get,set
        member val CreatedBy:String = null with get,set
        member val CreatedAt:DateTime = new DateTime() with get,set

    [<AllowNullLiteral>]
    type ImportHistoryResponse() = 
        member val Batches:ResizeArray<ImportBatchLog> = new ResizeArray<ImportBatchLog>() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type ImportHistoryRequest() = 
        class end

F# ImportHistoryRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + 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"}}}