Notification

Получить непрочитанные уведомления

post

Получить непрочитанные уведомления

Authorizations
Body
idintegerOptional
notificationCategoryIDinteger[]Required
topintegerRequired
Responses
200
OK
application/json
post
POST //api/notification HTTP/1.1
Host: api.client.nbcgate.tech
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 45

{
  "id": 1,
  "notificationCategoryID": [
    1
  ],
  "top": 1
}
[
  {
    "date": "text",
    "isRead": true,
    "message": "text",
    "notificationCategoryID": 1,
    "notificationID": 1,
    "notificationTypeID": 1
  }
]

Отметить уведомление прочитанным

put

Отметить уведомление прочитанным

Authorizations
Body
notificationCategoryIDintegerOptional
notification_idintegerOptional
Responses
204
No Content
put
PUT //api/notification HTTP/1.1
Host: api.client.nbcgate.tech
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 50

[
  {
    "notificationCategoryID": 1,
    "notification_id": 1
  }
]

No content

Получить уведомление по ID

get

Получить уведомление по ID

Authorizations
Path parameters
idstringRequired

id

Responses
200
OK
application/json
get
GET //api/notification/{id} HTTP/1.1
Host: api.client.nbcgate.tech
Authorization: YOUR_API_KEY
Accept: */*
{
  "date": "text",
  "isRead": true,
  "message": "text",
  "notificationCategoryID": 1,
  "notificationID": 1,
  "notificationTypeID": 1
}