Record Decision
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/decisions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"theme": "<string>",
"decision": "<string>",
"decided_on": "2023-12-25",
"why": "<string>",
"people": [
"<string>"
],
"source_url": "<string>",
"review_on": "2023-12-25",
"status": "proposed",
"replaces": [
"<string>"
],
"cancels": [
"<string>"
],
"related": [
"<string>"
],
"rule_ids": [
"<string>"
],
"conflict_check": "enforce"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/decisions"
payload = {
"title": "<string>",
"theme": "<string>",
"decision": "<string>",
"decided_on": "2023-12-25",
"why": "<string>",
"people": ["<string>"],
"source_url": "<string>",
"review_on": "2023-12-25",
"status": "proposed",
"replaces": ["<string>"],
"cancels": ["<string>"],
"related": ["<string>"],
"rule_ids": ["<string>"],
"conflict_check": "enforce"
}
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({
title: '<string>',
theme: '<string>',
decision: '<string>',
decided_on: '2023-12-25',
why: '<string>',
people: ['<string>'],
source_url: '<string>',
review_on: '2023-12-25',
status: 'proposed',
replaces: ['<string>'],
cancels: ['<string>'],
related: ['<string>'],
rule_ids: ['<string>'],
conflict_check: 'enforce'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/decisions', 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"
}
}{
"detail": "<string>",
"conflicts": [
{
"decision": {
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
},
"reason": "<string>"
}
],
"code": "contradicts_decisions"
}Decisions
Record Decision
Record a decision.
A proposed decision guides nothing until it is confirmed. An active one is in effect at once: the
decisions listed in replaces and cancels end, and stay in the log. A 409 lists the decisions in effect
that this one contradicts; nothing was recorded.
POST
/
api
/
v1
/
decisions
Record Decision
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/decisions \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"theme": "<string>",
"decision": "<string>",
"decided_on": "2023-12-25",
"why": "<string>",
"people": [
"<string>"
],
"source_url": "<string>",
"review_on": "2023-12-25",
"status": "proposed",
"replaces": [
"<string>"
],
"cancels": [
"<string>"
],
"related": [
"<string>"
],
"rule_ids": [
"<string>"
],
"conflict_check": "enforce"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/decisions"
payload = {
"title": "<string>",
"theme": "<string>",
"decision": "<string>",
"decided_on": "2023-12-25",
"why": "<string>",
"people": ["<string>"],
"source_url": "<string>",
"review_on": "2023-12-25",
"status": "proposed",
"replaces": ["<string>"],
"cancels": ["<string>"],
"related": ["<string>"],
"rule_ids": ["<string>"],
"conflict_check": "enforce"
}
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({
title: '<string>',
theme: '<string>',
decision: '<string>',
decided_on: '2023-12-25',
why: '<string>',
people: ['<string>'],
source_url: '<string>',
review_on: '2023-12-25',
status: 'proposed',
replaces: ['<string>'],
cancels: ['<string>'],
related: ['<string>'],
rule_ids: ['<string>'],
conflict_check: 'enforce'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/decisions', 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"
}
}{
"detail": "<string>",
"conflicts": [
{
"decision": {
"id": "<string>",
"reference": "<string>",
"title": "<string>",
"status": "<string>"
},
"reason": "<string>"
}
],
"code": "contradicts_decisions"
}Body
application/json
Response
Created
