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
seenboolean
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
pkuuidrequired
severitySeverityEnum (string)required
Possible values: [notice
, warning
, alert
]
bodystringrequired
createddate-timerequired
event object
seenboolean
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"severity": "notice",
"body": "string",
"created": "2024-07-29T15:51:28.071Z",
"event": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user": {},
"action": "login",
"app": "string",
"context": {},
"client_ip": "string",
"created": "2024-07-29T15:51:28.071Z",
"expires": "2024-07-29T15:51:28.071Z",
"brand": {}
},
"seen": true
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Patch, "/api/v3/events/notifications/:uuid/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"event\": {\n \"user\": {},\n \"action\": \"login\",\n \"app\": \"string\",\n \"context\": {},\n \"client_ip\": \"string\",\n \"expires\": \"2024-07-29T15:51:28.071Z\",\n \"brand\": {}\n },\n \"seen\": true\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());