按 ID 重发通知
使用此端点按 id 重发指定的通知。
可用环境
- 生产环境
https://api.gateway.com.br/dispatcher
端点
- 方法:
POST - 端点:
/request/{id}/resend - 认证方式:Bearer token
路径参数
| 名称 | 类型 | 必填 | 说明 | 校验规则 |
|---|---|---|---|---|
id | string | 是 | 通知的标识 | 必须为有效的通知 ID |
请求示例
- cURL
- JavaScript
curl --request POST \
--url https://api.gateway.com.br/dispatcher/request/553e8400-e29b-41d4-a716-446655440000/resend \
--header 'Authorization: Bearer your-jwt-token'
const response = await fetch('https://api.gateway.com.br/dispatcher/request/553e8400-e29b-41d4-a716-446655440000/resend', {
method: 'POST',
headers: {
'Authorization': 'Bearer your-jwt-token'
}
});
成功响应
| 状态码 | 说明 |
|---|---|
201 Created | 通知已成功重发 |
ℹ️ 响应体
此端点返回 201,没有响应体。
可能的错误
| 状态码 | 说明 | 处理方式 |
|---|---|---|
| 400 | 请求无效 | 请检查传入的 id |
| 401 | 凭据无效 | 请检查您的 token |
| 403 | 无权限或未授权 | 请检查 resend_dispatcher 权限范围 |
| 422 | 实体无法处理 | 请检查提交的数据 |
| 500 | 内部错误 | 请联系技术支持 |