GetServiceGroupScheduling
Queries the scheduling details of a service group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:GetServiceGroupScheduling |
get |
*All Resource
|
None | None |
Request syntax
POST /services/group/scheduling/detail HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| serviceGroupId |
integer |
Yes |
The ID of the service group. |
9999 |
| clientToken |
string |
No |
The idempotency token. |
C4BE3837-1A13-413B-A225-2C88188E8A43 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
xxxxxxxxxxxx |
| data |
object |
The scheduling details. |
|
| schedulingWay |
string |
The scheduling method. Valid values:
|
FINE |
| serviceGroupId |
integer |
The ID of the service group. |
99999 |
| fastScheduling |
object |
The fast scheduling details. |
|
| singleDuration |
integer |
The shift duration per person. |
12 |
| dutyPlan |
string |
The duty plan. Valid values:
|
FAST_CHOICE |
| singleDurationUnit |
string |
The unit of the shift duration per person. Valid values:
|
DAY |
| schedulingUsers |
array<object> |
The users for fast shift rotation. |
|
|
object |
The fast scheduling user. |
||
| schedulingUserId |
integer |
The ID of the shift rotation user. |
66666 |
| schedulingOrder |
integer |
The scheduling order. |
1 |
| schedulingUserName |
string |
The name of the shift rotation user. |
Mr. Zhang |
| schedulingUserIdList |
array |
The IDs of the users for multi-person scheduling. |
|
|
integer |
The user ID. |
66666 |
|
| schedulingObjectType |
string |
The scheduling object type. |
single |
| id |
integer |
The fast scheduling ID. |
2222 |
| fineScheduling |
object |
The fine scheduling details. |
|
| period |
integer |
The cycle period. |
Cycle period |
| id |
integer |
The fine scheduling ID. |
Fine scheduling ID |
| periodUnit |
string |
The unit of the cycle period. Valid values:
|
DAY |
| shiftType |
string |
The shift type. Valid values:
|
MORNING_NIGHT |
| schedulingFineShifts |
array<object> |
The personnel information for fine scheduling shifts. |
|
|
object |
The fine scheduling details. |
||
| schedulingStartTime |
string |
The start time of the shift, in the YYYY-MM-DD format. |
2020-08-13 |
| schedulingEndTime |
string |
The end time of the shift, in the YYYY-MM-DD format. |
2020-10-13 |
| schedulingOrder |
integer |
The scheduling order. |
1 |
| shiftName |
string |
The name of the shift. |
Morning shift |
| cycleOrder |
integer |
The cycle order. |
1 |
| schedulingUserId |
integer |
The ID of the scheduling user. |
1111 |
| skipOneDay |
boolean |
Indicates whether the shift spans across days. |
false |
| schedulingUserName |
string |
The name of the scheduling user. |
Liu Dehua |
| schedulingUserIdList |
array |
The IDs of the users for multi-person scheduling. |
|
|
integer |
The user ID. |
66666 |
|
| schedulingObjectType |
string |
The task scheduling type. |
single |
| schedulingTemplateFineShifts |
array<object> |
The fine scheduling template. |
|
|
object |
The fine scheduling template. |
||
| schedulingStartTime |
string |
The start time of the shift, in the YYYY-MM-DD HH:mm:ss format. |
2021-09-01 00:00:00 |
| schedulingEndTime |
string |
The end time of the shift, in the YYYY-MM-DD HH:mm:ss format. |
2021-10-01 00:00:00 |
| schedulingOrder |
integer |
The scheduling order. |
1 |
| schedulingUserId |
string |
The user ID. |
1 |
| skipOneDay |
boolean |
Indicates whether the shift spans across days. |
true |
| schedulingUserName |
string |
The name of the scheduling user. |
Liu Dehua |
| shiftName |
string |
The name of the shift. |
Morning shift |
| schedulingUserIdList |
array |
The IDs of the users for multi-person scheduling. |
|
|
integer |
The user ID. |
66666 |
|
| schedulingObjectType |
string |
The task scheduling type. |
single |
| users |
array<object> |
The scheduled users. |
|
|
object |
The scheduled user. |
||
| userId |
integer |
The user ID. |
66666 |
| userName |
string |
The username. |
Username |
Examples
Success response
JSON format
{
"requestId": "xxxxxxxxxxxx",
"data": {
"schedulingWay": "FINE",
"serviceGroupId": 99999,
"fastScheduling": {
"singleDuration": 12,
"dutyPlan": "FAST_CHOICE",
"singleDurationUnit": "DAY",
"schedulingUsers": [
{
"schedulingUserId": 66666,
"schedulingOrder": 1,
"schedulingUserName": "张先生",
"schedulingUserIdList": [
66666
],
"schedulingObjectType": "single"
}
],
"id": 2222
},
"fineScheduling": {
"period": 0,
"id": 0,
"periodUnit": "DAY",
"shiftType": "MORNING_NIGHT",
"schedulingFineShifts": [
{
"schedulingStartTime": "2020-08-13",
"schedulingEndTime": "2020-10-13",
"schedulingOrder": 1,
"shiftName": "早班",
"cycleOrder": 1,
"schedulingUserId": 1111,
"skipOneDay": false,
"schedulingUserName": "刘德华",
"schedulingUserIdList": [
66666
],
"schedulingObjectType": "single"
}
],
"schedulingTemplateFineShifts": [
{
"schedulingStartTime": "2021-09-01 00:00:00",
"schedulingEndTime": "2021-10-01 00:00:00",
"schedulingOrder": 1,
"schedulingUserId": "1",
"skipOneDay": true,
"schedulingUserName": "刘德华",
"shiftName": "早班",
"schedulingUserIdList": [
66666
],
"schedulingObjectType": "single"
}
]
},
"users": [
{
"userId": 66666,
"userName": "用户名字"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ResourceNotFound | The specified Resource is not found. | The specified Resource is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.