Trendsic Platform Service

<back to all web services

FormGoSendPreviewRequest

Requires Authentication
The following routes are available for this service:
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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	FormUID: 00000000000000000000000000000000,
	Mode: String,
	Positions: 
	[
		String
	],
	Workers: 
	[
		0
	],
	WithRows: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}