跳转到内容
简体中文

取消发送

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 · uuid

X-Customer-IDheader
选项 1

string

选项 2

null

响应

200 成功回复

application/json

object

cancelled

boolean

401 需要登录

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

403 无法访问

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

404 找不到资源

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

409 国家冲突

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object

422 验证错误

application/json

object

detail

array

数组元素

object

loc一定

array

数组元素
选项 1

string

选项 2

integer

msg一定

string

type一定

string

503 暂时无法使用

application/json

object

detail
选项 1

string

选项 2

object

code

string

message

string

选项 3

array

数组元素

object