发送短信加急
PATCH
https://open.feishu.cn/open-apis/im/v1/messages/{message_id}/urgent_sms
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 230001 | Your request contains an invalid request parameter. | 参数错误,请根据接口返回的错误信息并参考文档检查输入参数。 |
400 | 230002 | The bot can not be outside the group. | 机器人不在对应群组中。 |
400 | 230006 | Bot ability is not activated. | 机器人能力未启用 。在开发者后台-应用功能-机器人页面开启机器人功能并发布上线。 |
400 | 230012 | Bot is NOT the sender of the message. | 机器人不是消息的发送者。 |
400 | 230023 | The user has too many unread urgent messages. | 加急用户的未读加急总数不能超过200条,需要用户阅读一部分被加急的消息才可以继续加急。 |
400 | 230024 | Reach the upper limit of urgent message. | 加急额度超限,请联系租户管理员。 |
400 | 230027 | Lack of necessary permissions. | 请根据本文档中的权限要求部分补充所需权限。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://open.feishu.cn/open-apis/im/v1/messages//urgent_sms?user_id_type' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id_list": [
"ou_6yf8af6bgb9100449565764t3382b168"
]
}'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"invalid_user_id_list": [
"ou_6yf8af6bgb9100449565764t3382b168"
]
}
}
请求参数
Path 参数
message_id
string
必需
Query 参数
user_id_type
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-01-12 09:24:40