创建邮件组别名
POST
https://open.feishu.cn/open-apis/mail/v1/mailgroups/{mailgroup_id}/aliases
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
409 | 1234006 | email address has been used | 邮件地址已被占用,请使用其它邮件地址 |
404 | 1234013 | mail group not found | 请确认邮件组是否存在 |
400 | 1234008 | request parameter error | 请检查请求参数是否正确 |
409 | 1235002 | email alias address has been used | 别名邮件地址已被占用,请使用其它邮件地址 |
400 | 1235003 | Service unavailable | 请稍后重试 |
404 | 1234019 | mail address's domain not found | 请确认域名是否存在 |
409 | 1234033 | email address has been used by another member as login account | 邮件地址已被他人用作于登录邮箱,请使用其它邮件地址 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/mail/v1/mailgroups//aliases' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"email_alias": "xxx@xx.xxx"
}'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"mailgroup_alias": {
"primary_email": "xxx@xx.xxx",
"email_alias": "xxx@xx.xxx"
}
}
}
请求参数
Path 参数
mailgroup_id
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-02-02 08:57:22