Shift
200 OK
Bad Request - The server could not process the request due to invalid input, missing required parameters, or malformed syntax.
Unauthorized - Authentication is missing or invalid. Ensure you provide a valid token or credentials to access this resource.
Forbidden - You are authenticated but do not have permission to perform this action. Contact the administrator if you believe this is an error.
Conflict - The request could not be completed due to a conflict with the current state of the resource, such as a duplicate record or a versioning issue.
Internal Server Error - An unexpected error occurred on the server. Please try again later or contact support if the issue persists.
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"
}
]
}
]
}
204 No Content
No content
Bad Request - The server could not process the request due to invalid input, missing required parameters, or malformed syntax.
Unauthorized - Authentication is missing or invalid. Ensure you provide a valid token or credentials to access this resource.
Forbidden - You are authenticated but do not have permission to perform this action. Contact the administrator if you believe this is an error.
Conflict - The request could not be completed due to a conflict with the current state of the resource, such as a duplicate record or a versioning issue.
Internal Server Error - An unexpected error occurred on the server. Please try again later or contact support if the issue persists.
DELETE /api/shift-pattern/{id} HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
No content
200 OK
Bad Request - The server could not process the request due to invalid input, missing required parameters, or malformed syntax.
Unauthorized - Authentication is missing or invalid. Ensure you provide a valid token or credentials to access this resource.
Forbidden - You are authenticated but do not have permission to perform this action. Contact the administrator if you believe this is an error.
Conflict - The request could not be completed due to a conflict with the current state of the resource, such as a duplicate record or a versioning issue.
Internal Server Error - An unexpected error occurred on the server. Please try again later or contact support if the issue persists.
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
}
}