Hand Back Task
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}/hand-back \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"result": "<string>",
"outcome": "completed"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}/hand-back"
payload = {
"result": "<string>",
"outcome": "completed"
}
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({result: '<string>', outcome: 'completed'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}/hand-back', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"board_id": "<string>",
"title": "<string>",
"status": {
"key": "<string>",
"label": "<string>",
"category": "<string>",
"role": "<string>"
},
"priority": "<string>",
"labels": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"links": [
{
"id": "<string>",
"target_type": "<string>",
"target_id": "<string>",
"context": {
"conversation_id": "<string>",
"message_id": "<string>"
},
"deleted": true,
"admin_url": "<string>"
}
],
"source": "<string>",
"revision": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"admin_url": "<string>",
"identifier": "<string>",
"description": "",
"deadline": "2023-12-25",
"owner": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"holder": "human",
"agent": {
"id": "<string>",
"name": "<string>",
"kind": "ago"
},
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"finished_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}Tasks
Hand Back Task
Report on a task given to your external AI agent and return it to the team.
The report is posted as a comment signed by that agent. Returns 409 task_not_held_by_external_agent when
the task was taken back or is not with an external AI agent.
POST
/
api
/
v1
/
tasks
/
{task_id}
/
hand-back
Hand Back Task
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}/hand-back \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"result": "<string>",
"outcome": "completed"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}/hand-back"
payload = {
"result": "<string>",
"outcome": "completed"
}
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({result: '<string>', outcome: 'completed'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}/hand-back', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"board_id": "<string>",
"title": "<string>",
"status": {
"key": "<string>",
"label": "<string>",
"category": "<string>",
"role": "<string>"
},
"priority": "<string>",
"labels": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>"
}
],
"links": [
{
"id": "<string>",
"target_type": "<string>",
"target_id": "<string>",
"context": {
"conversation_id": "<string>",
"message_id": "<string>"
},
"deleted": true,
"admin_url": "<string>"
}
],
"source": "<string>",
"revision": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"admin_url": "<string>",
"identifier": "<string>",
"description": "",
"deadline": "2023-12-25",
"owner": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"holder": "human",
"agent": {
"id": "<string>",
"name": "<string>",
"kind": "ago"
},
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"finished_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}Body
application/json
Response
200 - application/json
OK
