Notifications
Mark all notifications as unread
Mark all notifications as unread for the current user
PATCH
/
api
/
notifications
/
mark-unread
Mark all notifications as unread
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/notifications/mark-unreadimport requests
url = "https://{baseUrl}/api/v1/api/notifications/mark-unread"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://{baseUrl}/api/v1/api/notifications/mark-unread', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/notifications/mark-unread"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}Response
200 - application/json
The response is of type object.
⌘I
Mark all notifications as unread
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/notifications/mark-unreadimport requests
url = "https://{baseUrl}/api/v1/api/notifications/mark-unread"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://{baseUrl}/api/v1/api/notifications/mark-unread', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/notifications/mark-unread"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}