| GET,PUT,DELETE,OPTIONS | /v1/forms/office/drafts/{SubmissionUID} |
|---|
"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 FormOfficeDraftRequest {
/** @param {{SubmissionUID?:string,AnswersJson?:string,Page?:number,Rev?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
SubmissionUID;
/** @type {string} */
AnswersJson;
/** @type {number} */
Page;
/** @type {?number} */
Rev;
}
JavaScript FormOfficeDraftRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=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
}
}
}