events_notifications_partial_update
PATCH/api/v3//events/notifications/:uuid/
Notification Viewset
Request
Path Parameters
uuid uuidrequired
A UUID string identifying this Notification.
- application/json
Body
event
object
seen boolean
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pk uuidrequired
severity SeverityEnum (string)required
Possible values: [notice
, warning
, alert
]
body stringrequired
created date-timerequired
event
object
seen boolean
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"severity": "notice",
"body": "string",
"created": "2024-09-27T14:26:18.164Z",
"event": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user": {},
"action": "login",
"app": "string",
"context": {},
"client_ip": "string",
"created": "2024-09-27T14:26:18.164Z",
"expires": "2024-09-27T14:26:18.164Z",
"brand": {}
},
"seen": true
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PATCH '/api/v3/events/notifications/:uuid/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"event": {
"user": {},
"action": "login",
"app": "string",
"context": {},
"client_ip": "string",
"expires": "2024-09-27T14:26:17.887Z",
"brand": {}
},
"seen": true
}'