A AuthMS API Wiki API Reference iam.tianv.com →

POST /admin/communication/resend/{id}

将处于failed或cancelled状态的消息重新加入发送队列进行重试。仅支持sms和email渠道(推送不支持重发)。重发后会创建新的发送记录并通过对应服务商重新投递。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。

通信服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 消息ID

Responses

StatusDescriptionSchema
200重发成功,消息已重新入队dto.OKResponse
400请求参数错误dto.SimpleResponse
401未认证或令牌无效dto.SimpleResponse
403无权访问该资源(仅管理员)dto.SimpleResponse
404消息不存在dto.SimpleResponse
409消息状态不允许重发(仅failed/cancelled可重发)dto.SimpleResponse
500服务内部错误dto.SimpleResponse

Referenced Schemas

dto.OKResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No 0
message string No success

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No