| POST | /v1/forms/go-send |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class FormGoSendRequest
{
open var FormUID:UUID? = null
open var Mode:String? = null
open var Positions:ArrayList<String> = ArrayList<String>()
open var Workers:ArrayList<Int> = ArrayList<Int>()
open var ClientKey:UUID? = null
}
open class FormGoSendResponse
{
open var Sent:Int? = null
open var Skipped:Int? = null
open var Reminders:Int? = null
open var Pushes:Int? = null
open var Texts:Int? = null
open var AppOnly:Int? = null
open var Message:String? = null
open var Replay:Boolean? = null
open var ResponseStatus:ResponseStatus? = null
}
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
}
}
}