保存联系方式
POST
/v1/mailboxes/{mailbox_id}/contacts将联系人的姓名和地址保存在所选邮箱中。如果具有相同 email 的联系人已存在,则更新其姓名而不创建重复项。
要求
curl -X POST 'https://adapt-mail.com/v1/mailboxes/<mailbox_id>/contacts' \ -H 'Authorization: Bearer <access_token>' \ -H 'Content-Type: application/json' \选项
mailbox_idpath一定integerX-Customer-IDheader- 选项 1
string选项 2null
请求正文 · application/json
object
email一定stringname一定stringminLength: 1maxLength: 120
不接受未知字段。
响应
200 成功回复
application/json
object
idintegermailbox_idintegeremailstringnamestringcreated_atstringUTC. 中的日期和时间 如果没有偏移,该值也代表 UTC.
401 需要登录
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
403 无法访问
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
404 找不到资源
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
409 国家冲突
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object
422 验证错误
application/json
object
detailarray数组元素objectloc一定array数组元素选项 1string选项 2integermsg一定stringtype一定string
503 暂时无法使用
application/json
object
detail- 选项 1
string选项 2objectcodestringmessagestring
选项 3array数组元素object