Trendsic Platform Service

<back to all web services

ShiftPatternSaveRequest

Requires Authentication
The following routes are available for this service:
POST/v1/workforce/patterns
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 ShiftPattern() = 
        member val ShiftPatternID:Int32 = new Int32() with get,set
        member val BranchId:Nullable<Guid> = new Nullable<Guid>() with get,set
        member val Code:String = null with get,set
        member val Name:String = null with get,set
        member val Struct:String = null with get,set
        member val HoursPerDay:Decimal = new Decimal() with get,set
        member val OnDays:Int32 = new Int32() with get,set
        member val OffDays:Int32 = new Int32() with get,set
        member val PatternType:String = null with get,set
        member val IsNight:Boolean = new Boolean() with get,set
        member val HasBoundary:Boolean = new Boolean() with get,set
        member val IsHitch:Boolean = new Boolean() with get,set
        member val HasTravel:Boolean = new Boolean() with get,set
        member val IsSeasonal:Boolean = new Boolean() with get,set
        member val SeasonalWindow:String = null with get,set
        member val IsDayRate:Boolean = new Boolean() with get,set
        member val OtRuleId:String = null with get,set
        member val PerDiemRuleId:String = null with get,set
        member val Packs:String = null with get,set
        member val Status:String = null with get,set
        member val IsSeed:Boolean = new Boolean() with get,set
        member val AssignedCount:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type ShiftPatternsResponse() = 
        member val Patterns:ResizeArray<ShiftPattern> = new ResizeArray<ShiftPattern>() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type ShiftPatternSaveRequest() = 
        member val Pattern:ShiftPattern = null with get,set

F# ShiftPatternSaveRequest DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/workforce/patterns HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Pattern":{"ShiftPatternID":0,"BranchId":"00000000000000000000000000000000","Code":"String","Name":"String","Struct":"String","HoursPerDay":0,"OnDays":0,"OffDays":0,"PatternType":"String","IsNight":false,"HasBoundary":false,"IsHitch":false,"HasTravel":false,"IsSeasonal":false,"SeasonalWindow":"String","IsDayRate":false,"OtRuleId":"String","PerDiemRuleId":"String","Packs":"String","Status":"String","IsSeed":false,"AssignedCount":0}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Patterns":[{"ShiftPatternID":0,"BranchId":"00000000000000000000000000000000","Code":"String","Name":"String","Struct":"String","HoursPerDay":0,"OnDays":0,"OffDays":0,"PatternType":"String","IsNight":false,"HasBoundary":false,"IsHitch":false,"HasTravel":false,"IsSeasonal":false,"SeasonalWindow":"String","IsDayRate":false,"OtRuleId":"String","PerDiemRuleId":"String","Packs":"String","Status":"String","IsSeed":false,"AssignedCount":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}