API Reference/Notifications/Read all

Mark all notifications as read

PUT
/api/notifications/read-all
AuthorizationBearer <token>

In: header

Response Body

curl -X PUT "http://localhost:3000/api/notifications/read-all"
fetch("http://localhost:3000/api/notifications/read-all")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "http://localhost:3000/api/notifications/read-all"

  req, _ := http.NewRequest("PUT", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "http://localhost:3000/api/notifications/read-all"

response = requests.request("PUT", url)

print(response.text)
{
  "message": "string",
  "updatedCount": 0
}