import requests
url = "https://platform.ankra.app/api/v1/org/decisions/check"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/api/v1/org/decisions/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/decisions/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"results": [
{
"index": 123,
"dedupe_key": "<string>",
"outcome": "ok",
"status_code": 123,
"response": {},
"detail": "<string>",
"can_decide": true,
"can_run": true
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Check decision proposals without filing them
Answers, for each proposal, what POST /api/v1/org/decisions would answer it with now, and writes nothing: no proposal or activity event is created or changed, and no row or lock is held past the request. The proposals are judged as the caller, by the same validation and refusal logic the upsert runs, against the read replica, so a result can trail a write made a moment before. Each result is ok (the upsert would take it), refused with exactly the status code and body the upsert answers, or unknown when the check could not be evaluated; a client must not read unknown as ok. A check takes at most 24 proposals; a larger one is refused with 422 and nothing is checked. Bearer-PAT twin of the browser route of the same name under /org; the console’s session cookie is not accepted here and the browser route answers a token with a login redirect.
import requests
url = "https://platform.ankra.app/api/v1/org/decisions/check"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://platform.ankra.app/api/v1/org/decisions/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/decisions/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"results": [
{
"index": 123,
"dedupe_key": "<string>",
"outcome": "ok",
"status_code": 123,
"response": {},
"detail": "<string>",
"can_decide": true,
"can_run": true
}
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}