| POST | /v1/formfill/draft/{Token}/file/{FieldKey} |
|---|
"use strict";
export class FormFillFileResponse {
/** @param {{Id?:string,Name?:string,Size?:string,Kind?:string,Rev?:number,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Name;
/** @type {string} */
Size;
/** @type {string} */
Kind;
/** @type {number} */
Rev;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormFillFileRequest {
/** @param {{Token?:string,FieldKey?:string,Rev?:number,RequestStream?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Token;
/** @type {string} */
FieldKey;
/** @type {?number} */
Rev;
/** @type {string} */
RequestStream;
}
JavaScript FormFillFileRequest 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.
POST /v1/formfill/draft/{Token}/file/{FieldKey} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Token":"String","FieldKey":"String","Rev":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Id":"String","Name":"String","Size":"String","Kind":"String","Rev":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}