Update Task
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"expected_revision": 123
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}"
payload = {
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"expected_revision": 123
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
status: '<string>',
priority: '<string>',
deadline: '2023-12-25',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
label_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
expected_revision: 123
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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>"
},
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"finished_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}Tasks
Update Task
Update only the fields you send. null clears the owner, deadline or description.
Send expected_revision to get a 409 task_revision_conflict instead of overwriting a newer edit.
PUT
/
api
/
v1
/
tasks
/
{task_id}
Update Task
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"expected_revision": 123
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}"
payload = {
"title": "<string>",
"description": "<string>",
"status": "<string>",
"priority": "<string>",
"deadline": "2023-12-25",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"expected_revision": 123
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
status: '<string>',
priority: '<string>',
deadline: '2023-12-25',
owner_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
label_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
expected_revision: 123
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/tasks/{task_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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>"
},
"created_by": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"finished_at": "2023-11-07T05:31:56Z",
"archived_at": "2023-11-07T05:31:56Z"
}Authorizations
Path Parameters
Task UUID or identifier such as TASK-12
Body
application/json
Send only the fields to change; null clears owner, deadline and description.
Maximum string length:
200Maximum string length:
5000Reject the update with 409 task_revision_conflict if the task changed since.
Response
200 - application/json
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Short handle such as TASK-12, accepted wherever a task id is.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
