| POST | /v1/forms/go-send/preview |
|---|
"use strict";
export class FormGoPosition {
/** @param {{SkillUID?:string,Name?:string,Active?:boolean,Ticked?:boolean,Count?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
SkillUID;
/** @type {string} */
Name;
/** @type {boolean} */
Active;
/** @type {boolean} */
Ticked;
/** @type {number} */
Count;
}
export class FormGoSendWorker {
/** @param {{Id?:number,Name?:string,Position?:string,Submitted?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Id;
/** @type {string} */
Name;
/** @type {string} */
Position;
/** @type {boolean} */
Submitted;
}
export class FormGoSendPreviewResponse {
/** @param {{Positions?:FormGoPosition[],Workers?:FormGoSendWorker[],Send?:number,Skipped?:number,Consequence?:string,SendLabel?:string,Refusal?:string,SendOff?:string,Max?:number,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {FormGoPosition[]} */
Positions = [];
/** @type {FormGoSendWorker[]} */
Workers = [];
/** @type {number} */
Send;
/** @type {number} */
Skipped;
/** @type {string} */
Consequence;
/** @type {string} */
SendLabel;
/** @type {string} */
Refusal;
/** @type {string} */
SendOff;
/** @type {number} */
Max;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormGoSendPreviewRequest {
/** @param {{FormUID?:string,Mode?:string,Positions?:string[],Workers?:number[],WithRows?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FormUID;
/** @type {string} */
Mode;
/** @type {string[]} */
Positions = [];
/** @type {number[]} */
Workers = [];
/** @type {boolean} */
WithRows;
}
JavaScript FormGoSendPreviewRequest 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/go-send/preview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"FormUID":"00000000000000000000000000000000","Mode":"String","Positions":["String"],"Workers":[0],"WithRows":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Positions":[{"SkillUID":"String","Name":"String","Active":false,"Ticked":false,"Count":0}],"Workers":[{"Id":0,"Name":"String","Position":"String","Submitted":false}],"Send":0,"Skipped":0,"Consequence":"String","SendLabel":"String","Refusal":"String","SendOff":"String","Max":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}