PATCH
/
api
/
notifications
/
{id}
Update a notification
curl --request PATCH \
  --url http://localhost:3000/api/notifications/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "<string>",
  "title": "<string>",
  "message": "<string>",
  "referenceId": "<string>",
  "referenceType": "<string>",
  "readStatus": true
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "recipient": "<string>",
    "type": "<string>",
    "title": "<string>",
    "message": "<string>",
    "referenceId": "<string>",
    "referenceType": "<string>",
    "readStatus": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Resource ID

Body

application/json
type
string
Minimum string length: 1
title
string
Minimum string length: 1
message
string
referenceId
string
Minimum string length: 1
referenceType
string
Minimum string length: 1
priority
enum<string>
Available options:
low,
medium,
high,
urgent
readStatus
boolean

Response

Notification updated

success
boolean
Example:

true

message
string
data
object