轮询指定实例下指定坐席的坐席状态,一般由前端坐席工作台调用,用于同步坐席状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 实例 ID。 | ccc-test |
UserId | string | 是 | 坐席 ID。 | agent@ccc-test |
DeviceId | string | 是 | 设备 ID,无意义,可以随便填写。 | device |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"Params": [
"无"
],
"Data": {
"ContextId": 103655,
"CallContext": {
"CallType": "OUTBOUND",
"InstanceId": "ccc-test",
"JobId": "job-6538214103685****",
"ChannelContexts": [
{
"Index": 1,
"ReleaseInitiator": "1390501****",
"ChannelState": "CREATED",
"Destination": "1390501****",
"UserId": "agent@ccc-test",
"ChannelFlags": "MONITORING",
"SkillGroupId": "skillgroup@ccc-test",
"Timestamp": 1609138903315,
"ReleaseReason": "404 - No destination",
"CallType": "OUTBOUND",
"ChannelVariables": "123",
"JobId": "job-6538214103685****",
"ChannelId": "ch:user:1390501****->8032****:1609138902226:job-653821410368****",
"UserExtension": "8032****",
"Originator": "0830019****"
}
],
"CallVariables": "a=b;c=d"
},
"UserContext": {
"Extension": "8032****",
"Heartbeat": 1609136956378,
"WorkMode": "ON_SITE",
"DeviceId": "ACC-YUNBS-1.0.10-****",
"UserId": "agent@ccc-test",
"Reserved": 1609136956378,
"BreakCode": "Warm-up",
"InstanceId": "ccc-test",
"OutboundScenario": false,
"Mobile": "1324730****",
"JobId": "job-6538214103685****",
"UserState": "BREAK",
"SignedSkillGroupIdList": [
"skillgroup1@ccc-test"
],
"ParallelJobList": [
{
"JobId": "job-6538214103685****\n",
"Status": "RINGING",
"Timestamp": 1609136956378
}
]
},
"ChatContexts": [
{
"InstanceId": "ccc-test",
"JobId": "chat-65382141036853491\n",
"ChatType": "INBOUND",
"CallVariables": "无",
"Members": [
{
"Index": 1,
"UserId": "agent@ccc-test\n",
"UserType": "Manager",
"Status": "RINGING",
"SkillGroupId": "a527a80a-75cf-448f-aba0-fca37c61946d",
"ReleaseInitiator": "User",
"ReleaseReason": "无"
}
]
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Parameter.Blank | The parameter %s may not be null or blank. | 该参数不能为null或含有空白符的字符串。 |
404 | NotExists.InstanceId | The specified instance %s does not exist. | 指定的呼叫中心实例不存在。 |
404 | NotExists.UserId | The user %s does not exist in instance %s. | 呼叫中心实例中不存在指定的用户。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-11-17 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |