Trendsic Platform Service

<back to all web services

ShiftPatternsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/workforce/patterns
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class ShiftPattern
            Public Overridable Property ShiftPatternID As Integer
            Public Overridable Property BranchId As Guid?
            Public Overridable Property Code As String
            Public Overridable Property Name As String
            Public Overridable Property Struct As String
            Public Overridable Property HoursPerDay As Decimal
            Public Overridable Property OnDays As Integer
            Public Overridable Property OffDays As Integer
            Public Overridable Property PatternType As String
            Public Overridable Property IsNight As Boolean
            Public Overridable Property HasBoundary As Boolean
            Public Overridable Property IsHitch As Boolean
            Public Overridable Property HasTravel As Boolean
            Public Overridable Property IsSeasonal As Boolean
            Public Overridable Property SeasonalWindow As String
            Public Overridable Property IsDayRate As Boolean
            Public Overridable Property OtRuleId As String
            Public Overridable Property PerDiemRuleId As String
            Public Overridable Property Packs As String
            Public Overridable Property Status As String
            Public Overridable Property IsSeed As Boolean
            Public Overridable Property AssignedCount As Integer
        End Class

        Public Partial Class ShiftPatternsRequest
        End Class

        Public Partial Class ShiftPatternsResponse
            Public Overridable Property Patterns As List(Of ShiftPattern) = New List(Of ShiftPattern)
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET ShiftPatternsRequest 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.

GET /v1/workforce/patterns HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}