Update notify
UpdateNotify
Description: Updates an existing notification record by ID. Allows changing the message, metadata, and optionally the timestamp fields.
Request Parameters
| Name |
Type |
Required |
Description |
| id |
int |
Yes |
Notification ID to update |
| user_id |
int |
Yes |
User ID associated with the notification |
| token |
string |
Yes |
Unique token identifier for the notification |
| message |
string |
Yes |
JSON string representing the message content |
| description |
string |
Yes |
JSON string with extended description |
| type |
int |
Yes |
Notification type |
| level |
int |
Yes |
Notification level |
| status |
int |
Yes |
Notification status |
| open_time |
int64 |
No |
Optional open time (Unix timestamp) |
| create_time |
int64 |
No |
Optional creation time (Unix timestamp) |
| update_time |
int64 |
No |
Optional last updated time (Unix timestamp) |
Request Example
{
"id": 101,
"user_id": 123456,
"token": "alert-abc-001",
"message": "{\"title\":\"Updated\",\"body\":\"Content changed.\"}",
"description": "{\"details\":\"Updated manually\"}",
"type": 1,
"level": 2,
"status": 0,
"update_time": 1693300000
}
Response Parameters
| Name |
Type |
Description |
| data |
string |
Returns "OK" if successful |
Response Example