Shift

get
Authorizations
Responses
200
200 OK
application/json
get
GET /api/shift-pattern HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "isSuccess": true,
  "results": [
    {
      "accountId": "text",
      "title": "text",
      "id": 1,
      "createdAt": "text",
      "updatedAt": "text",
      "code": "text",
      "duration": 1,
      "startHour": 1,
      "endHour": 1,
      "shifts": [
        {
          "shiftId": 1,
          "startHour": 1,
          "duration": 1,
          "shiftName": "text",
          "shiftPatternId": 1,
          "weekDay": "text"
        }
      ]
    }
  ]
}
delete
Authorizations
Path parameters
idintegerRequired
Responses
204
204 No Content
delete
DELETE /api/shift-pattern/{id} HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*

No content

post
Authorizations
Body
shiftPatternIdintegerOptional
titlestring · min: 1Required
deleteShiftsinteger[]Optional
Responses
200
200 OK
application/json
post
POST /api/shift HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 151

{
  "shiftPatternId": 1,
  "title": "text",
  "shifts": [
    {
      "id": 1,
      "name": "text",
      "startHour": 1,
      "duration": 1,
      "shiftPatternId": 1,
      "weekDay": "text"
    }
  ],
  "deleteShifts": [
    1
  ]
}
{
  "isSuccess": true,
  "result": {
    "shifts": [
      {
        "shiftId": 1,
        "startHour": 1,
        "duration": 1,
        "shiftName": "text",
        "shiftPatternId": 1,
        "weekDay": "text"
      }
    ],
    "shiftPatternId": 1
  }
}