HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
500 | 1051000 | unknown server error | 服务内部错误,请稍后重试 |
400 | 1051001 | request contain invalid param | 请求中包含非法参数 |
403 | 1051002 | request to exceed authority | 请求发生越权 |
400 | 1051113 | cannot find this badge | 未找到该勋章的信息 |
curl --location --request GET 'https://open.feishu.cn/open-apis/admin/v1/badges//grants?page_size=&page_token=&user_id_type=&department_id_type=&name=' \
--header 'Authorization;'
{
"code": 0,
"msg": "success",
"data": {
"grants": [
{
"id": "g_49Z7CQ",
"badge_id": "m_qTR2HM",
"name": "激励勋章的授予名单",
"grant_type": 0,
"time_zone": "Asia/Shanghai",
"rule_detail": {
"effective_time": "1649606400",
"expiration_time": "1649692799",
"anniversary": 1,
"effective_period": 1
},
"is_grant_all": false,
"user_ids": [
"u273y71"
],
"department_ids": [
"h121921"
],
"group_ids": [
"g122817"
]
}
],
"page_token": "om5fn1",
"has_more": false
}
}