HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
500 | 1009999 | Unknown error. Please contact Feishu Assistant or your customer success manager. | 内部错误,请联系飞书助手或您的客户成功经理 |
500 | 1009998 | system exception | 系统异常 |
200 | 1001001 | Invalid parameters. Please check document and modify accordingly. | 无效的参数,请对照文档检查输入的参数 |
200 | 1001002 | No permission. | 您无权访问该接口,请确认您的登录凭证 |
200 | 1001003 | User not found. | 用户不存在 |
200 | 1001004 | OKR data not found. | 对应ID的数据不存在 |
400 | 1001005 | update numbers exceeds limit | 更新数量超过限制 |
400 | 1001006 | start value equals target value | 起始值等于目标值 |
400 | 1001007 | table id match error | 表的 id 匹配错误 |
403 | 1000403 | OpenAPI is unavailable in current edition (Standard edition). Please update to Business edition. | 您目前的套餐无法使用开放平台接口功能,请升级至OKR企业版 |
curl --location --request PATCH 'https://open.feishu.cn/open-apis/okr/v1/metric_sources/7041857032248410131/tables/7041857032248410131/items/batch_update?user_id_type=' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{
"metric_item_id": "635782378412311",
"metric_initial_value": 1.0,
"metric_target_value": 3.0,
"metric_current_value": 2.0,
"supported_user_id": "7041857032248410131"
}
]
}'
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"metric_item_id": "635782378412311",
"user_id": "635782378412311",
"period_id": "635782378412311",
"metric_unit": {
"zh_cn": "小明",
"en_us": "jack",
"ja_jp": "シャオ・ミン"
},
"metric_initial_value": 10.01,
"metric_target_value": 10.01,
"metric_current_value": 10.01,
"supported_user_id": "ou_8e7d79ca2327bf4f0b3c37899d6abbd5",
"kr_id": "7139040982003302420",
"updated_at": "1663145941129",
"updated_by": "ou_8e7d79ca2327bf4f0b3c37899d6abbd5"
}
],
"failed_items": [
{
"metric_item_id": "7139040982003302420",
"reason": "start value equals target value"
}
]
}
}