Trendsic Platform Service

<back to all web services

FormOfficeStartRequest

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

public class dtos
{

    public static class FormOfficeStartRequest
    {
        public UUID FormUID = null;
        public Integer ContactId = null;
        public String Name = null;
        public String Email = null;
        public String Mobile = null;
        public String BranchId = null;
        
        public UUID getFormUID() { return FormUID; }
        public FormOfficeStartRequest setFormUID(UUID value) { this.FormUID = value; return this; }
        public Integer getContactId() { return ContactId; }
        public FormOfficeStartRequest setContactId(Integer value) { this.ContactId = value; return this; }
        public String getName() { return Name; }
        public FormOfficeStartRequest setName(String value) { this.Name = value; return this; }
        public String getEmail() { return Email; }
        public FormOfficeStartRequest setEmail(String value) { this.Email = value; return this; }
        public String getMobile() { return Mobile; }
        public FormOfficeStartRequest setMobile(String value) { this.Mobile = value; return this; }
        public String getBranchId() { return BranchId; }
        public FormOfficeStartRequest setBranchId(String value) { this.BranchId = 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 FormOfficeStartRequest DTOs

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

HTTP + OTHER

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

POST /v1/forms/office/drafts HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"FormUID":"00000000000000000000000000000000","ContactId":0,"Name":"String","Email":"String","Mobile":"String","BranchId":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}