Mark all as read
const options = {method: 'POST'};
fetch('http://localhost:4005/v1/arc/notifications/notifications/inbox/read-all', 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 := "http://localhost:4005/v1/arc/notifications/notifications/inbox/read-all"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request POST \
--url http://localhost:4005/v1/arc/notifications/notifications/inbox/read-allimport requests
url = "http://localhost:4005/v1/arc/notifications/notifications/inbox/read-all"
response = requests.post(url)
print(response.text){
"success": true,
"data": {
"markedCount": 123
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Inbox
Mark all as read
Mark all notifications as read (Arc platform)
POST
/
v1
/
arc
/
notifications
/
notifications
/
inbox
/
read-all
Mark all as read
const options = {method: 'POST'};
fetch('http://localhost:4005/v1/arc/notifications/notifications/inbox/read-all', 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 := "http://localhost:4005/v1/arc/notifications/notifications/inbox/read-all"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request POST \
--url http://localhost:4005/v1/arc/notifications/notifications/inbox/read-allimport requests
url = "http://localhost:4005/v1/arc/notifications/notifications/inbox/read-all"
response = requests.post(url)
print(response.text){
"success": true,
"data": {
"markedCount": 123
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
},
"meta": {
"requestId": "<string>",
"timestamp": "<string>"
}
}Was this page helpful?