POST /notifications/send
Compatibility endpoint with same functionality as /notifications, sends notification to specified user. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.
Notification Service `bearerAuth` application/json
Request Body
Schema: dto.SendNotificationRequest
| Field | Type | Required | Example | Constraints | Description |
content |
string |
Yes |
Your account has been successfully upgraded |
|
Content |
title |
string |
Yes |
System notification |
|
Title |
user_id |
string |
Yes |
usr_abc123 |
|
User ID |
aggregation_key |
string |
No |
new_follower |
|
Aggregation key (notifications with the same key are aggregated into one) |
metadata |
object |
No |
|
|
Metadata |
priority |
string |
No |
medium |
|
Priority |
type |
string |
No |
system |
|
Type |
Referenced Schemas
dto.SendNotificationCompatDetailResponse
dto.SendNotificationCompatResponse
Send notification response result (compatible endpoint)
| Field | Type | Required | Example | Constraints | Description |
id |
string |
No |
notif-1234567890 |
|
Notification ID |
status |
string |
No |
sent |
|
Status |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|