取消发送
POST
/v1/operations/{operation_id}/cancel当操作处于 queued. 状态时取消发送信件 如果发送已开始、完成或被取消,则返回 409。您无法使用此方法撤回已发送的信件。
要求
curl -X POST 'https://adapt-mail.com/v1/operations/<operation_id>/cancel' \ -H 'Authorization: Bearer <access_token>'选项
operation_idpath一定string · uuidX-Customer-IDheader- 选项 1
string选项 2null
响应
200 成功回复
application/json
object
cancelledboolean
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