Skip to content

更新客服信息

更新客服状态等信息。

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/helpdesk/v1/agents/:agent_id
HTTP MethodPATCH
接口频率限制100 次/分钟
支持的应用类型custom
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用helpdesk:all 更新服务台资源详情

请求头

名称类型必填描述
Authorizationstringuser_access_token 值格式:"Bearer access_token" 示例值:"Bearer u-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token
Content-Typestring固定值:"application/json; charset=utf-8"

Tip: 服务台请求Header中还需添加“服务台token”参数:

Key: X-Lark-Helpdesk-Authorization

Value: base64(helpdesk_id:helpdesk_token),通过base64加密将helpdesk_id和helpdesk_token用':'连接而成的字符串。

了解更多:获取与使用服务台token

路径参数

名称类型描述
agent_idstring客服id
示例值:"ou_14777d82ffef0f707de5a8c7ff2c5ebe"

请求体

名称类型必填描述
statusintagent status,1:在线;2:离线
示例值:1

请求体示例

json
{
    "status": 1
}

响应

响应体

名称类型描述
codeint错误码,非 0 表示失败
msgstring错误描述
data\--

响应体示例

json
{
    "code": 0,
    "msg": "success",
    "data": {}
}

错误码

HTTP状态码错误码描述排查建议
400150001param is invalis客服状态错误

内容来源:飞书开放平台 · 自动爬取整理