The pending deletion of this organization, if there is one
curl --request GET \
--url https://app.trustivan.com/api/v1/orgs/current/deletion \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/orgs/current/deletion"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/orgs/current/deletion', 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://app.trustivan.com/api/v1/orgs/current/deletion"
req, _ := http.NewRequest("GET", 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))
}{
"deletion": {
"requested_at": "2023-11-07T05:31:56Z",
"effective_at": "2023-11-07T05:31:56Z",
"requested_by": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}This organization's pending deletion, if any
Readable by every member, not only owners. A person whose organization is about to be erased needs to know before it happens; hiding it from members is how a tenant finds out by everything vanishing.
deletion is null when none is scheduled.
GET
/
orgs
/
current
/
deletion
The pending deletion of this organization, if there is one
curl --request GET \
--url https://app.trustivan.com/api/v1/orgs/current/deletion \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/orgs/current/deletion"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/orgs/current/deletion', 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://app.trustivan.com/api/v1/orgs/current/deletion"
req, _ := http.NewRequest("GET", 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))
}{
"deletion": {
"requested_at": "2023-11-07T05:31:56Z",
"effective_at": "2023-11-07T05:31:56Z",
"requested_by": "<string>"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}