Cancel Decision
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/decisions/{ref}/cancel \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"reason": "",
"cancelled_by": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/decisions/{ref}/cancel"
payload = {
"reason": "",
"cancelled_by": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '', cancelled_by: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/decisions/{ref}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"theme": "<string>",
"decided_on": "2023-12-25",
"decision": "<string>",
"why": "<string>",
"people": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"source_url": "<string>",
"status": "<string>",
"status_reason": "<string>",
"replaces": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"replaced_by": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"cancels": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"cancelled_by": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"related": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"rules": [
{
"id": "<string>",
"title": "<string>"
}
],
"recorded_by": {
"name": "<string>",
"via": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"version": 123,
"updated_at": "2023-11-07T05:31:56Z",
"history": [
{
"version": 123,
"change": "<string>",
"changed_by": {
"name": "<string>",
"via": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"title": "<string>",
"decision": "<string>",
"status": "<string>"
}
],
"object": "decision",
"review_on": "2023-12-25",
"confirmed_by": {
"name": "<string>",
"via": "<string>",
"at": "2023-11-07T05:31:56Z"
}
}Decisions
Cancel Decision
Cancel a decision. It stays in the log with the reason and, when given, the decision that cancels it.
POST
/
api
/
v1
/
decisions
/
{ref}
/
cancel
Cancel Decision
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/decisions/{ref}/cancel \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"reason": "",
"cancelled_by": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/decisions/{ref}/cancel"
payload = {
"reason": "",
"cancelled_by": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: '', cancelled_by: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/decisions/{ref}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"theme": "<string>",
"decided_on": "2023-12-25",
"decision": "<string>",
"why": "<string>",
"people": [
{
"id": "<string>",
"name": "<string>",
"email": "<string>"
}
],
"source_url": "<string>",
"status": "<string>",
"status_reason": "<string>",
"replaces": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"replaced_by": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"cancels": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"cancelled_by": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"related": [
{
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
}
],
"rules": [
{
"id": "<string>",
"title": "<string>"
}
],
"recorded_by": {
"name": "<string>",
"via": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"version": 123,
"updated_at": "2023-11-07T05:31:56Z",
"history": [
{
"version": 123,
"change": "<string>",
"changed_by": {
"name": "<string>",
"via": "<string>",
"at": "2023-11-07T05:31:56Z"
},
"title": "<string>",
"decision": "<string>",
"status": "<string>"
}
],
"object": "decision",
"review_on": "2023-12-25",
"confirmed_by": {
"name": "<string>",
"via": "<string>",
"at": "2023-11-07T05:31:56Z"
}
}Body
application/json
Response
200 - application/json
OK
