| POST | /v1/forms/go-send/preview |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class FormGoSendPreviewRequest
{
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 WithRows:Boolean? = null
}
open class FormGoSendPreviewResponse
{
open var Positions:ArrayList<FormGoPosition> = ArrayList<FormGoPosition>()
open var Workers:ArrayList<FormGoSendWorker> = ArrayList<FormGoSendWorker>()
open var Send:Int? = null
open var Skipped:Int? = null
open var Consequence:String? = null
open var SendLabel:String? = null
open var Refusal:String? = null
open var SendOff:String? = null
open var Max:Int? = null
open var ResponseStatus:ResponseStatus? = null
}
open class FormGoPosition
{
open var SkillUID:String? = null
open var Name:String? = null
open var Active:Boolean? = null
open var Ticked:Boolean? = null
open var Count:Int? = null
}
open class FormGoSendWorker
{
open var Id:Int? = null
open var Name:String? = null
open var Position:String? = null
open var Submitted:Boolean? = null
}
Kotlin FormGoSendPreviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
Content-Length: length
{"FormUID":"00000000000000000000000000000000","Mode":"String","Positions":["String"],"Workers":[0],"WithRows":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}