Перейти к содержимому

Delete Notification

DELETE
/v1/notifications/{notification_id}
curl --request DELETE \
--url https://api.cloud.agentums.ru/v1/notifications/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Убрать уведомление совсем. Отличается от POST /notifications/read: то гасит непрочитанность, оставляя запись в списке, а это удаляет её.

notification_id
required
Notification Id
string format: uuid

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}