🔁APIs
Clear all notifications of current user.
Body
objectOptional
Responses
200Success
application/json
post
/notifications/clearPOST /api/notifications/clear HTTP/1.1
Host: cm.test
Content-Type: application/json
Accept: */*
Content-Length: 2
{}200Success
{
"success": true,
"message": "text",
"data": [
"text"
]
}Delete Selected notifications by ID
Path parameters
idstringRequired
Body
objectOptional
Responses
200Success
application/json
delete
/notifications/{id}/deleteDELETE /api/notifications/{id}/delete HTTP/1.1
Host: cm.test
Content-Type: application/json
Accept: */*
Content-Length: 2
{}200Success
{
"success": true,
"message": "text",
"data": [
"text"
]
}You can make the selected notification by id flag to be is_read=true
Path parameters
idstringRequired
Body
objectOptional
Responses
200Success
application/json
404Error
application/json
post
/notifications/{id}/readPOST /api/notifications/{id}/read HTTP/1.1
Host: cm.test
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"success": true,
"message": "text",
"data": [
"text"
]
}update notification token for FCM integration token
Body
tokenstring | nullOptional
Responses
200Success
application/json
422
Validation error
application/json
post
/notifications/togglePOST /api/notifications/toggle HTTP/1.1
Host: cm.test
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"token": null
}{
"success": true,
"message": "text",
"body": [
"text"
]
}Last updated
Was this helpful?