Trendsic Platform Service

<back to all web services

FormOfficeDraftRequest

Requires Authentication
The following routes are available for this service:
GET,PUT,DELETE,OPTIONS/v1/forms/office/drafts/{SubmissionUID}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

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

    public static class FormOfficeDraftResponse
    {
        public String SubmissionUID = null;
        public String FormUID = null;
        public String FormName = null;
        public String AppJson = null;
        public String AnswersJson = null;
        public Integer Page = null;
        public Integer Rev = null;
        public String TenantName = null;
        public String Today = null;
        public String ForName = null;
        public String BranchName = null;
        public String FilledByName = null;
        public String SignedInName = null;
        public Boolean ContactLinked = null;
        public String Outcome = null;
        public String OutcomeWaiting = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getSubmissionUID() { return SubmissionUID; }
        public FormOfficeDraftResponse setSubmissionUID(String value) { this.SubmissionUID = value; return this; }
        public String getFormUID() { return FormUID; }
        public FormOfficeDraftResponse setFormUID(String value) { this.FormUID = value; return this; }
        public String getFormName() { return FormName; }
        public FormOfficeDraftResponse setFormName(String value) { this.FormName = value; return this; }
        public String getAppJson() { return AppJson; }
        public FormOfficeDraftResponse setAppJson(String value) { this.AppJson = value; return this; }
        public String getAnswersJson() { return AnswersJson; }
        public FormOfficeDraftResponse setAnswersJson(String value) { this.AnswersJson = value; return this; }
        public Integer getPage() { return Page; }
        public FormOfficeDraftResponse setPage(Integer value) { this.Page = value; return this; }
        public Integer getRev() { return Rev; }
        public FormOfficeDraftResponse setRev(Integer value) { this.Rev = value; return this; }
        public String getTenantName() { return TenantName; }
        public FormOfficeDraftResponse setTenantName(String value) { this.TenantName = value; return this; }
        public String getToday() { return Today; }
        public FormOfficeDraftResponse setToday(String value) { this.Today = value; return this; }
        public String getForName() { return ForName; }
        public FormOfficeDraftResponse setForName(String value) { this.ForName = value; return this; }
        public String getBranchName() { return BranchName; }
        public FormOfficeDraftResponse setBranchName(String value) { this.BranchName = value; return this; }
        public String getFilledByName() { return FilledByName; }
        public FormOfficeDraftResponse setFilledByName(String value) { this.FilledByName = value; return this; }
        public String getSignedInName() { return SignedInName; }
        public FormOfficeDraftResponse setSignedInName(String value) { this.SignedInName = value; return this; }
        public Boolean isContactLinked() { return ContactLinked; }
        public FormOfficeDraftResponse setContactLinked(Boolean value) { this.ContactLinked = value; return this; }
        public String getOutcome() { return Outcome; }
        public FormOfficeDraftResponse setOutcome(String value) { this.Outcome = value; return this; }
        public String getOutcomeWaiting() { return OutcomeWaiting; }
        public FormOfficeDraftResponse setOutcomeWaiting(String value) { this.OutcomeWaiting = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormOfficeDraftResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

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

PUT /v1/forms/office/drafts/{SubmissionUID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	SubmissionUID: String,
	FormUID: String,
	FormName: String,
	AppJson: String,
	AnswersJson: String,
	Page: 0,
	Rev: 0,
	TenantName: String,
	Today: String,
	ForName: String,
	BranchName: String,
	FilledByName: String,
	SignedInName: String,
	ContactLinked: False,
	Outcome: String,
	OutcomeWaiting: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}