Notifications
Mark all notifications as read
Mark all notifications as read for the current user
PATCH
/
api
/
notifications
/
mark-read
Mark all notifications as read
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/notifications/mark-readimport requests
url = "https://{baseUrl}/api/v1/api/notifications/mark-read"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://{baseUrl}/api/v1/api/notifications/mark-read', 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-read"
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 read
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/notifications/mark-readimport requests
url = "https://{baseUrl}/api/v1/api/notifications/mark-read"
response = requests.patch(url)
print(response.text)const options = {method: 'PATCH'};
fetch('https://{baseUrl}/api/v1/api/notifications/mark-read', 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-read"
req, _ := http.NewRequest("PATCH", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}