| GET,PUT | /v1/forms/submissions/{SubmissionUID}/update |
|---|
"use strict";
export class FormFillFieldError {
/** @param {{K?:string,Msg?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
K;
/** @type {string} */
Msg;
}
export class FormRecordUpdateDraftResponse {
/** @param {{SubmissionUID?:string,Number?:string,ForName?:string,BranchName?:string,AppJson?:string,AnswersJson?:string,Rev?:number,TenantName?:string,Today?:string,Outcome?:string,SignedInName?:string,CanReveal?:boolean,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
SubmissionUID;
/** @type {string} */
Number;
/** @type {string} */
ForName;
/** @type {string} */
BranchName;
/** @type {string} */
AppJson;
/** @type {string} */
AnswersJson;
/** @type {number} */
Rev;
/** @type {string} */
TenantName;
/** @type {string} */
Today;
/** @type {string} */
Outcome;
/** @type {string} */
SignedInName;
/** @type {boolean} */
CanReveal;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormRecordUpdateSaveResponse {
/** @param {{Saved?:boolean,Rev?:number,Lines?:string[],Errors?:FormFillFieldError[],Draft?:FormRecordUpdateDraftResponse,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
Saved;
/** @type {number} */
Rev;
/** @type {string[]} */
Lines = [];
/** @type {FormFillFieldError[]} */
Errors = [];
/** @type {FormRecordUpdateDraftResponse} */
Draft;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormRecordUpdateRequest {
/** @param {{SubmissionUID?:string,AnswersJson?:string,Rev?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
SubmissionUID;
/** @type {string} */
AnswersJson;
/** @type {?number} */
Rev;
}
JavaScript FormRecordUpdateRequest 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/submissions/{SubmissionUID}/update 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
{
Saved: False,
Rev: 0,
Lines:
[
String
],
Errors:
[
{
K: String,
Msg: String
}
],
Draft:
{
SubmissionUID: String,
Number: String,
ForName: String,
BranchName: String,
AppJson: String,
AnswersJson: String,
Rev: 0,
TenantName: String,
Today: String,
Outcome: String,
SignedInName: String,
CanReveal: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
},
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}