HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
404 | 1234013 | mail group not found | 请确认邮件组是否存在 |
400 | 1234008 | request parameter error | 请检查请求参数是否正确 |
curl --location --request POST 'https://open.feishu.cn/open-apis/mail/v1/mailgroups//permission_members/batch_create?user_id_type=&department_id_type=' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{
"user_id": "xxxxxxxxxx",
"type": "USER"
},
{
"department_id": "xxxxxxxxxx",
"type": "DEPARTMENT"
},
{
"email": "xxx@xx.x",
"type": "MAIL_GROUP"
},
{
"email": "xxx@xx.x",
"type": "PUBLIC_MAILBOX"
}
]
}'
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"permission_member_id": "xxxxxxxxxxxxxxx",
"user_id": "xxxxxxxxxx",
"department_id": "xxxxxxxxxx",
"email": "xxx@xx.x",
"type": "USER"
}
]
}
}