查询指定人员的服务组排班。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
POST /services/group/scheduling/getUserScheduling HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
Object | Body | 否 | A short description of struct |
||
userId | Long | Body | 是 | 66666 | 用户ID |
serviceGroupId | Long | Body | 否 | 77777 | 服务组ID |
clientToken | String | Body | 否 | C4BE3837-1A13-413B-A225-2C88188E8A43 | 幂等号 |
{
"userId" : 66666,
"serviceGroupId" : 77777,
"clientToken" : "C4BE3837-1A13-413B-A225-2C88188E8A43",
"startTime" : "2020-09-01 00:00:00",
"endTime" : "2020-09-31 23:59:59"
}
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
requestId | String | xxxxxx | Id of the request |
data | Array of 人员排班信息 | 人员排班信息 |
|
schedulingStartTime | String | 2021-08-17 00:00:00 | 排班开始时间 |
schedulingEndTime | String | 2021-08-17 12:00:00 | 排班结束时间 |
schedulingDate | String | 2021-08-17 | 排班日期 |
serviceGroupId | Long | 8888 | 服务组id |
serviceGroupName | String | 雪豹突击队 | 服务组名字 |
schedulingUserId | Long | 111111 | 排班用户ID |
{
"requestId": "xxxxxx",
"data": { "schedulingStartTime": "2021-08-17 00:00:00", "schedulingEndTime": "2021-08-17 12:00:00", "schedulingDate": "2021-08-17", "serviceGroupId": 8888, "serviceGroupName": "雪豹突击队", "schedulingUserId": 111111 }
}
示例
请求示例
POST /services/group/scheduling/getUserScheduling HTTP/1.1
Host:gemp.aliyuncs.com
Content-Type:application/json
{
"userId" : 66666,
"serviceGroupId" : 77777,
"clientToken" : "C4BE3837-1A13-413B-A225-2C88188E8A43",
"startTime" : "2020-09-01 00:00:00",
"endTime" : "2020-09-31 23:59:59"
}
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetServiceGroupSpecialPersonSchedulingResponse>
<requestId>xxxxxx</requestId>
<data>
<schedulingStartTime>2021-08-17 00:00:00</schedulingStartTime>
<schedulingEndTime>2021-08-17 12:00:00</schedulingEndTime>
<schedulingDate>2021-08-17</schedulingDate>
<serviceGroupId>8888</serviceGroupId>
<serviceGroupName>雪豹突击队</serviceGroupName>
<schedulingUserId>111111</schedulingUserId>
</data>
</GetServiceGroupSpecialPersonSchedulingResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"requestId" : "xxxxxx",
"data" : [ {
"schedulingStartTime" : "2021-08-17 00:00:00",
"schedulingEndTime" : "2021-08-17 12:00:00",
"schedulingDate" : "2021-08-17",
"serviceGroupId" : 8888,
"serviceGroupName" : "雪豹突击队",
"schedulingUserId" : 111111
} ]
}
错误码
访问错误中心查看更多错误码。
访问错误中心查看更多错误码。