| GET | /v1/workforce/patterns |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Patterns | form | List<ShiftPattern> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ShiftPatternID | form | int | No | |
| BranchId | form | Guid? | No | |
| Code | form | string | No | |
| Name | form | string | No | |
| Struct | form | string | No | |
| HoursPerDay | form | decimal | No | |
| OnDays | form | int | No | |
| OffDays | form | int | No | |
| PatternType | form | string | No | |
| IsNight | form | bool | No | |
| HasBoundary | form | bool | No | |
| IsHitch | form | bool | No | |
| HasTravel | form | bool | No | |
| IsSeasonal | form | bool | No | |
| SeasonalWindow | form | string | No | |
| IsDayRate | form | bool | No | |
| OtRuleId | form | string | No | |
| PerDiemRuleId | form | string | No | |
| Packs | form | string | No | |
| Status | form | string | No | |
| IsSeed | form | bool | No | |
| AssignedCount | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}