Skip to content

启用/停用试用期考核功能

启用/停用试用期考核功能,启用后系统功能中针对试用期考核相关的字段会自动启用,并可通过接口更新试用期考核结果

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/corehr/v2/probation/enable_disable_assessment
HTTP MethodPOST
接口频率限制100 次/分钟
支持的应用类型custom,isv
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用corehr:probation.assessment:write 读写试用期考核信息

请求头

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

请求体

名称类型必填描述
activeboolean启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。
示例值:true
app_urlstring试用期考核系统入口链接,当启用功能时该字段必填。
示例值:"https://qwe111.feishuapp.bytedance.net/ae/ui/apps/176612345027111/appPages/l11bsrwss13yt?dataGridApye4fsbajo21l={}&key=ffm41o1&dataGridAwmv98t29vif3kj=}"

请求体示例

json
{
    "active": true,
    "app_url": "https://qwe111.feishuapp.bytedance.net/ae/ui/apps/176612345027111/appPages/l11bsrwss13yt?dataGrid%41pye4fsbajo21l=%7B%7D&key=ffm41o1&dataGrid%41wmv98t29vif3kj=%1B%7D"
}

响应

响应体

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

响应体示例

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

错误码

HTTP状态码错误码描述排查建议
4001161025Do not repeatedly turn on/off the function请勿重复开启/关闭功能

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