| POST | /v1/forms/submissions/bulk |
|---|
"use strict";
export class FormSubmissionBulkResponse {
/** @param {{Change?:number,Already?:number,Cannot?:number,Lines?:string[],StageLabel?:string,AgentName?:string,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Change;
/** @type {number} */
Already;
/** @type {number} */
Cannot;
/** @type {string[]} */
Lines = [];
/** @type {string} */
StageLabel;
/** @type {string} */
AgentName;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormSubmissionBulkRequest {
/** @param {{Action?:string,SubmissionUIDs?:string[],Stage?:string,AgentId?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Action;
/** @type {string[]} */
SubmissionUIDs = [];
/** @type {string} */
Stage;
/** @type {?number} */
AgentId;
}
JavaScript FormSubmissionBulkRequest 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/forms/submissions/bulk HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Action":"String","SubmissionUIDs":["00000000000000000000000000000000"],"Stage":"String","AgentId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Change":0,"Already":0,"Cannot":0,"Lines":["String"],"StageLabel":"String","AgentName":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}