| POST | /v1/forms/go-send |
|---|
"use strict";
export class FormGoSendResponse {
/** @param {{Sent?:number,Skipped?:number,Reminders?:number,Pushes?:number,Texts?:number,AppOnly?:number,Message?:string,Replay?:boolean,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Sent;
/** @type {number} */
Skipped;
/** @type {number} */
Reminders;
/** @type {number} */
Pushes;
/** @type {number} */
Texts;
/** @type {number} */
AppOnly;
/** @type {string} */
Message;
/** @type {boolean} */
Replay;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class FormGoSendRequest {
/** @param {{FormUID?:string,Mode?:string,Positions?:string[],Workers?:number[],ClientKey?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
FormUID;
/** @type {string} */
Mode;
/** @type {string[]} */
Positions = [];
/** @type {number[]} */
Workers = [];
/** @type {string} */
ClientKey;
}
JavaScript FormGoSendRequest 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.
POST /v1/forms/go-send HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
FormUID: 00000000000000000000000000000000,
Mode: String,
Positions:
[
String
],
Workers:
[
0
],
ClientKey: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Sent: 0,
Skipped: 0,
Reminders: 0,
Pushes: 0,
Texts: 0,
AppOnly: 0,
Message: String,
Replay: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}