| POST,OPTIONS | /v1/forms/office/drafts |
|---|
"use strict";
export class FormOfficeDraftResponse {
/** @param {{SubmissionUID?:string,FormUID?:string,FormName?:string,AppJson?:string,AnswersJson?:string,Page?:number,Rev?:number,TenantName?:string,Today?:string,ForName?:string,BranchName?:string,FilledByName?:string,SignedInName?:string,ContactLinked?:boolean,Outcome?:string,OutcomeWaiting?:string,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
SubmissionUID;
/** @type {string} */
FormUID;
/** @type {string} */
FormName;
/** @type {string} */
AppJson;
/** @type {string} */
AnswersJson;
/** @type {number} */
Page;
/** @type {number} */
Rev;
/** @type {string} */
TenantName;
/** @type {string} */
Today;
/** @type {string} */
ForName;
/** @type {string} */
BranchName;
/** @type {string} */
FilledByName;
/** @type {string} */
SignedInName;
/** @type {boolean} */
ContactLinked;
/** @type {string} */
Outcome;
/** @type {string} */
OutcomeWaiting;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormOfficeStartRequest {
/** @param {{FormUID?:string,ContactId?:number,Name?:string,Email?:string,Mobile?:string,BranchId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FormUID;
/** @type {?number} */
ContactId;
/** @type {string} */
Name;
/** @type {string} */
Email;
/** @type {string} */
Mobile;
/** @type {string} */
BranchId;
}
JavaScript FormOfficeStartRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=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"}}}