Trendsic Platform Service

<back to all web services

FormRecordUpdatePreviewRequest

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

public class dtos
{

    public static class FormRecordUpdatePreviewRequest
    {
        public UUID SubmissionUID = null;
        public String AnswersJson = null;
        public Integer Rev = null;
        
        public UUID getSubmissionUID() { return SubmissionUID; }
        public FormRecordUpdatePreviewRequest setSubmissionUID(UUID value) { this.SubmissionUID = value; return this; }
        public String getAnswersJson() { return AnswersJson; }
        public FormRecordUpdatePreviewRequest setAnswersJson(String value) { this.AnswersJson = value; return this; }
        public Integer getRev() { return Rev; }
        public FormRecordUpdatePreviewRequest setRev(Integer value) { this.Rev = value; return this; }
    }

    public static class FormRecordUpdatePreviewResponse
    {
        public ArrayList<String> Lines = new ArrayList<String>();
        public ArrayList<String> SigsMoved = new ArrayList<String>();
        public String Outcome = null;
        public ArrayList<FormFillFieldError> Errors = new ArrayList<FormFillFieldError>();
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<String> getLines() { return Lines; }
        public FormRecordUpdatePreviewResponse setLines(ArrayList<String> value) { this.Lines = value; return this; }
        public ArrayList<String> getSigsMoved() { return SigsMoved; }
        public FormRecordUpdatePreviewResponse setSigsMoved(ArrayList<String> value) { this.SigsMoved = value; return this; }
        public String getOutcome() { return Outcome; }
        public FormRecordUpdatePreviewResponse setOutcome(String value) { this.Outcome = value; return this; }
        public ArrayList<FormFillFieldError> getErrors() { return Errors; }
        public FormRecordUpdatePreviewResponse setErrors(ArrayList<FormFillFieldError> value) { this.Errors = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormRecordUpdatePreviewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormFillFieldError
    {
        public String K = null;
        public String Msg = null;
        
        public String getK() { return K; }
        public FormFillFieldError setK(String value) { this.K = value; return this; }
        public String getMsg() { return Msg; }
        public FormFillFieldError setMsg(String value) { this.Msg = value; return this; }
    }

}

Java FormRecordUpdatePreviewRequest 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/{SubmissionUID}/update/preview HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	SubmissionUID: 00000000000000000000000000000000,
	AnswersJson: String,
	Rev: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Lines: 
	[
		String
	],
	SigsMoved: 
	[
		String
	],
	Outcome: String,
	Errors: 
	[
		{
			K: String,
			Msg: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}