Trendsic Platform Service

<back to all web services

FormZipDownloadRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/submissions/zips/{ZipUID}/download
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormZipDownloadRequest
    {
        public UUID ZipUID = null;
        
        public UUID getZipUID() { return ZipUID; }
        public FormZipDownloadRequest setZipUID(UUID value) { this.ZipUID = value; return this; }
    }

    public static class FormZipDownloadResponse
    {
        public Boolean Ok = null;
        public String Message = null;
        public String Url = null;
        public String FileName = null;
        public ResponseStatus ResponseStatus = null;
        
        public Boolean isOk() { return Ok; }
        public FormZipDownloadResponse setOk(Boolean value) { this.Ok = value; return this; }
        public String getMessage() { return Message; }
        public FormZipDownloadResponse setMessage(String value) { this.Message = value; return this; }
        public String getUrl() { return Url; }
        public FormZipDownloadResponse setUrl(String value) { this.Url = value; return this; }
        public String getFileName() { return FileName; }
        public FormZipDownloadResponse setFileName(String value) { this.FileName = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormZipDownloadResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java FormZipDownloadRequest 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.

POST /v1/forms/submissions/zips/{ZipUID}/download HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ZipUID: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Ok: False,
	Message: String,
	Url: String,
	FileName: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}