Update notification
PUT/notification/:notificationId
Update notification
Request
Path Parameters
notificationId notificationIdrequired
The notificationId to update
- application/json
Body
Notification data
seen boolean
Responses
- 200
- 401
- 403
- 404
- default
Notification successfully updated
- application/json
- Schema
- Example (from schema)
Schema
type string
owner address (string)
importance integer
id notificationId (string)
Unique identifier for notfication
{
"type": "string",
"owner": "string",
"importance": 0,
"id": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...