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