| GET | /v1/import/history |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class ImportBatchLog
{
public virtual int ImportBatchId { get; set; }
public virtual Guid BatchUID { get; set; }
public virtual string ImportType { get; set; }
public virtual string FileName { get; set; }
public virtual string Status { get; set; }
public virtual int TotalRows { get; set; }
public virtual int InsertedRows { get; set; }
public virtual int UpdatedRows { get; set; }
public virtual int SkippedRows { get; set; }
public virtual int ErrorRows { get; set; }
public virtual string CreatedBy { get; set; }
public virtual DateTime CreatedAt { get; set; }
}
public partial class ImportHistoryRequest
{
}
public partial class ImportHistoryResponse
{
public virtual List<ImportBatchLog> Batches { get; set; } = [];
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
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
}
}
}