Trendsic Platform Service

<back to all web services

FormZipListRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/submissions/zips
import Foundation
import ServiceStack

public class FormZipListRequest : Codable
{
    public var formUID:String

    required public init(){}
}

public class FormZipListResponse : Codable
{
    public var jobs:[FormZipJobView] = []
    public var responseStatus:ResponseStatus

    required public init(){}
}

public class FormZipJobView : Codable
{
    public var zipUID:String
    public var formUID:String
    public var formName:String
    public var status:String
    public var statusText:String
    public var message:String
    public var fileName:String
    public var submissions:Int
    public var files:Int
    public var bytes:Int
    public var leftOut:Int
    public var filesIn:Int?
    public var bytesIn:Int?
    public var leftOutIn:Int?
    public var zipBytes:Int?
    public var sizeText:String
    public var createdAt:Date?
    public var createdText:String
    public var completedAt:Date?
    public var expiresAt:Date?
    public var expiresText:String
    public var downloads:Int
    public var lastDownloadText:String

    required public init(){}
}


Swift FormZipListRequest DTOs

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/forms/submissions/zips HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Jobs: 
	[
		{
			ZipUID: 00000000000000000000000000000000,
			FormUID: 00000000000000000000000000000000,
			FormName: String,
			Status: String,
			StatusText: String,
			Message: String,
			FileName: String,
			Submissions: 0,
			Files: 0,
			Bytes: 0,
			LeftOut: 0,
			FilesIn: 0,
			BytesIn: 0,
			LeftOutIn: 0,
			ZipBytes: 0,
			SizeText: String,
			CreatedAt: 0001-01-01,
			CreatedText: String,
			CompletedAt: 0001-01-01,
			ExpiresAt: 0001-01-01,
			ExpiresText: String,
			Downloads: 0,
			LastDownloadText: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}