Trendsic Platform Service

<back to all web services

FormZipOneRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/submissions/zips/{ZipUID}

export class FormZipJobView
{
    public ZipUID: string;
    public FormUID: string;
    public FormName: string;
    public Status: string;
    public StatusText: string;
    public Message: string;
    public FileName: string;
    public Submissions: number;
    public Files: number;
    public Bytes: number;
    public LeftOut: number;
    public FilesIn?: number;
    public BytesIn?: number;
    public LeftOutIn?: number;
    public ZipBytes?: number;
    public SizeText: string;
    public CreatedAt?: string;
    public CreatedText: string;
    public CompletedAt?: string;
    public ExpiresAt?: string;
    public ExpiresText: string;
    public Downloads: number;
    public LastDownloadText: string;

    public constructor(init?: Partial<FormZipJobView>) { (Object as any).assign(this, init); }
}

export class FormZipOneResponse
{
    public Job: FormZipJobView;
    public Message: string;
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<FormZipOneResponse>) { (Object as any).assign(this, init); }
}

export class FormZipOneRequest
{
    public ZipUID: string;

    public constructor(init?: Partial<FormZipOneRequest>) { (Object as any).assign(this, init); }
}

TypeScript FormZipOneRequest 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/{ZipUID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Job: 
	{
		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
	},
	Message: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}