notifications
Mark a notification as read
Changed onpatch/notifications/{notification_id}
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
notification_idstring required
Example:01910b38-22db-79a1-a766-26b69757e3d2
Request body
Example request
{
"is_read": true
}Response
Notification updated successfully
Example response
{
"status": "success",
"message": "Notification updated successfully",
"status_code": 200,
"data": {
"notification_id": "01910b38-22db-79a1-a766-26b69757e3d2",
"is_read": true,
"updated_at": "2024-08-01T06:00:14.011782+01:00"
}
}Changes
- breaking
added the new path request parameter
notification_id - warning
deleted the
pathrequest parameternotificationId
- breaking
- info
endpoint added
- info