| PUT | /v1/forms/{FormUID}/draft |
|---|
"use strict";
export class FormDraftResponse {
/** @param {{DraftRev?:number,DraftDirty?:boolean,Warnings?:string[],AlwaysHidden?:string[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
DraftRev;
/** @type {boolean} */
DraftDirty;
/** @type {string[]} */
Warnings = [];
/** @type {string[]} */
AlwaysHidden = [];
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormDraftRequest {
/** @param {{FormUID?:string,DraftJson?:string,DraftRev?:number,SettingsJson?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FormUID;
/** @type {string} */
DraftJson;
/** @type {number} */
DraftRev;
/** @type {string} */
SettingsJson;
}
JavaScript FormDraftRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/forms/{FormUID}/draft HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"FormUID":"00000000000000000000000000000000","DraftJson":"String","DraftRev":0,"SettingsJson":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"DraftRev":0,"DraftDirty":false,"Warnings":["String"],"AlwaysHidden":["String"],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}