/notifications/send-batchSend the same notification message to multiple users simultaneously, suitable for system announcements, operational activities, etc. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.
Schema: dto.BatchSendNotificationRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
content |
string |
Yes | Your account has been successfully upgraded |
Content | |
title |
string |
Yes | System notification |
Title | |
user_ids |
array of string |
Yes | ['usr_001', 'usr_002'] |
User ID list | |
priority |
string |
No | medium |
Priority | |
type |
string |
No | system |
Type |
| Status | Description | Schema |
|---|---|---|
| 201 | Batch sent successfully | dto.BatchSendNotificationDetailResponse |
| 400 | Invalid request parameters | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 401 | Unauthenticated | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 403 | Insufficient permissions | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 404 | Resource not found | gitee_com_linmes_authms_base_dto.SimpleResponse |
| 500 | Internal server error | gitee_com_linmes_authms_base_dto.SimpleResponse |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.BatchSendNotificationResponse |
No | |||
message |
string |
No |
Batch send notification result
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
notification_ids |
array of string |
No | ['["ntf_001"]'] |
Notification ID list | |
sent_count |
integer |
No | 5 |
Sent count |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
message |
string |
No | |||
timestamp |
string |
No |