Arquivar notificacao
curl --request POST \
--url http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}Arquivar notificacao
POST
/
v1
/
workspaces
/
{workspaceId}
/
notifications
/
{notificationId}
/
archive
Arquivar notificacao
curl --request POST \
--url http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v1/workspaces/{workspaceId}/notifications/{notificationId}/archive"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}