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
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type FormGoPosition() = 
        member val SkillUID:String = null with get,set
        member val Name:String = null with get,set
        member val Active:Boolean = new Boolean() with get,set
        member val Ticked:Boolean = new Boolean() with get,set
        member val Count:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type FormGoSendWorker() = 
        member val Id:Int32 = new Int32() with get,set
        member val Name:String = null with get,set
        member val Position:String = null with get,set
        member val Submitted:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type FormGoSendPreviewResponse() = 
        member val Positions:ResizeArray<FormGoPosition> = new ResizeArray<FormGoPosition>() with get,set
        member val Workers:ResizeArray<FormGoSendWorker> = new ResizeArray<FormGoSendWorker>() with get,set
        member val Send:Int32 = new Int32() with get,set
        member val Skipped:Int32 = new Int32() with get,set
        member val Consequence:String = null with get,set
        member val SendLabel:String = null with get,set
        member val Refusal:String = null with get,set
        member val SendOff:String = null with get,set
        member val Max:Int32 = new Int32() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type FormGoSendPreviewRequest() = 
        member val FormUID:Guid = new Guid() with get,set
        member val Mode:String = null with get,set
        member val Positions:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val Workers:ResizeArray<Int32> = new ResizeArray<Int32>() with get,set
        member val WithRows:Boolean = new Boolean() with get,set

F# FormGoSendPreviewRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

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