HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
404 | 1234016 | public mailbox not found | 请确认公共邮箱是否存在 |
400 | 1234008 | request parameter error | 请检查请求参数是否正确 |
400 | 1234027 | some users have exceeded the limit on the number of bindable public mailboxes | 请检查并去除绑定公共邮箱已达数量限制的用户 |
curl --location --request POST 'https://open.feishu.cn/open-apis/mail/v1/public_mailboxes//members/batch_create?user_id_type=' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{
"user_id": "xxxxxxxxxx",
"type": "USER"
}
]
}'
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"member_id": "xxxxxxxxxxxxxxx",
"user_id": "xxxxxxxxxx",
"type": "USER"
}
]
}
}