获取勋章详情
GET
https://open.feishu.cn/open-apis/admin/v1/badges/{badge_id}
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
500 | 1051000 | unknown server error | 服务内部错误,请稍后重试 |
400 | 1051001 | request contain invalid param | 请求中包含非法参数 |
403 | 1051002 | request to exceed authority | 请求发生越权 |
400 | 1051113 | cannot find this badge | 未找到该勋章的信息 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/admin/v1/badges/' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"badge": {
"id": "m_MzfKDM",
"name": "激励勋章",
"explanation": "这枚勋章为了激励员工颁发。",
"detail_image": "75a1949f-d9df-4b46-bc88-dacc51e88f3j",
"show_image": "03daa74a-159f-49e9-963e-b6c4d76103fj",
"i18n_name": {
"zh_cn": "激励勋章",
"en_us": "Incentive Medal",
"ja_jp": "奨励メダル"
},
"i18n_explanation": {
"zh_cn": "激励勋章",
"en_us": "Incentive Medal",
"ja_jp": "奨励メダル"
}
}
}
}
请求参数
Path 参数
badge_id
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
返回响应
修改于 2023-02-03 09:57:38