Delete notification
const options = {method: 'DELETE', headers: {cookie: 'session='}};
fetch('https://api.example.com/v1/regions/global/notifications/inbox/{id}', 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://api.example.com/v1/regions/global/notifications/inbox/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request DELETE \
--url https://api.example.com/v1/regions/global/notifications/inbox/{id} \
--cookie session=import requests
url = "https://api.example.com/v1/regions/global/notifications/inbox/{id}"
headers = {"cookie": "session="}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>"
},
"meta": {}
}Inbox
Delete notification
Delete notification from inbox
DELETE
/
v1
/
regions
/
global
/
notifications
/
inbox
/
{id}
Delete notification
const options = {method: 'DELETE', headers: {cookie: 'session='}};
fetch('https://api.example.com/v1/regions/global/notifications/inbox/{id}', 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://api.example.com/v1/regions/global/notifications/inbox/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("cookie", "session=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request DELETE \
--url https://api.example.com/v1/regions/global/notifications/inbox/{id} \
--cookie session=import requests
url = "https://api.example.com/v1/regions/global/notifications/inbox/{id}"
headers = {"cookie": "session="}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>"
},
"meta": {}
}Was this page helpful?