API Reference/Notifications/Notificationid/Read

Mark notification as read

PUT
/api/notifications/{notificationId}/read
AuthorizationBearer <token>

In: header

Path Parameters

notificationIdstring
Format"uuid"

Response Body

curl -X PUT "http://localhost:3000/api/notifications/497f6eca-6276-4993-bfeb-53cbbbba6f08/read"
fetch("http://localhost:3000/api/notifications/497f6eca-6276-4993-bfeb-53cbbbba6f08/read")
package main

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

func main() {
  url := "http://localhost:3000/api/notifications/497f6eca-6276-4993-bfeb-53cbbbba6f08/read"

  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/497f6eca-6276-4993-bfeb-53cbbbba6f08/read"

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

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