This API retrieves a list of skills for a specific account and displays the current shift status for each skill as defined on the account or skill level. This is indicated under the onShift parameter which is boolean.
Request
| Method | URL |
|---|---|
| GET | https://{domain}/api/account/{accountId}/shift-status |
Request Headers
| Header | Description |
|---|---|
| Authorization | Contains token string to allow request authentication and authorization: "Bearer {token (bearer)}". |
Path Parameters
| Parameter | Description | Type / Value |
|---|---|---|
| accountId | LP site ID | String |
Response
Response Codes
| Code | Description |
|---|---|
| 200 | OK |
| 401 | Not Authenticated |
| 500 | Internal Server Error |
Response Body
Entity Structure
| Attribute | Description | Type/Value | Notes |
|---|---|---|---|
| skillId | A Skill's unique ID | Long | |
| onShift | Whether the current skill is on shift or not | Boolean | For skills which did not override the account default configuration, the shift status will be taken from the account level |
| nextOn | The start time of the next shift | Long | Epoch time in milliseconds. This value can be null if the shift is 24\7 |
| nextOff | The end time of the next shift | Long | Epoch time in milliseconds. This value can be null if the shift is 24\7 or if the skill has no configuration and it uses an account level configuration which is manual and currently off. |
Entity Example
[
{
"skillId": 326244912,
"onShift": false,
"nextOn": 1535979600000,
"nextOff": 1535997600000
},
{
"skillId": 326244932,
"onShift": true,
"nextOn": 1535997600000,
"nextOff": 1535997600000
},
{
"skillId": 326244952,
"onShift": true
},
{
"skillId": 326244972,
"onShift": true,
"nextOn": 1535997600000
}
]