Force-close expired monitoring orders (dev-only)
curl --request POST \
--url https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired"
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))
}const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"closed": 7
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Force-close expired monitoring orders (dev-only)
Forces one expired-monitoring close sweep in the tenant scope supplied by middleware and returns a PII-free closure count. Mounted only in local/development environments.
POST
/
admin
/
monitoring
/
close-expired
Force-close expired monitoring orders (dev-only)
curl --request POST \
--url https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired"
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))
}const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sisbajud.sandbox.lerian.net/admin/monitoring/close-expired"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"closed": 7
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}¿Esta página le ayudó?

