修改邮件组部分信息
PATCH
https://open.feishu.cn/open-apis/mail/v1/mailgroups/{mailgroup_id}
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
404 | 1234013 | mail group not found | 请确认邮件组是否存在 |
400 | 1234008 | request parameter error | 请检查请求参数是否正确 |
409 | 1234033 | email address has been used by another member as login account | 邮件地址已被他人用作于登录邮箱,请使用其它邮件地址 |
400 | 1234008 | request parameter error | 请检查请求参数是否正确 |
409 | 1234006 | email address has been used | 邮件地址已被占用,请使用其它邮件地址 |
409 | 1234023 | email address alias exceed the number limit | 超出了邮箱别名限制 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://open.feishu.cn/open-apis/mail/v1/mailgroups/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "xxx@xxx.com",
"name": "xxx",
"description": "xxx",
"who_can_send_mail": "ANYONE"
}'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"mailgroup_id": "xxx",
"email": "xx@xx.xx",
"name": "xxx",
"description": "xxx",
"direct_members_count": "x",
"include_external_member": true,
"include_all_company_member": false,
"who_can_send_mail": "ANYONE"
}
}
请求参数
Path 参数
mailgroup_id
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json