curl --request PATCH \
--url https://api.tela.com/task/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "completed"
}
'{
"id": "8b6d2c9a-1f4e-4c1b-9a1e-3c2d5e6f7a80",
"reference": 42,
"name": "Invoice-2025-001.pdf",
"status": "completed",
"rawInput": {
"application_id": "95cec438-6080-44fe-8275-28b16bd40178",
"variables": {
"document": {
"files": [
{
"file_url": "https://example.com/invoice.pdf"
}
]
}
}
},
"inputContent": {
"variables": {
"document": {
"files": [
{
"file_url": "https://example.com/invoice.pdf"
}
]
}
},
"messages": [],
"files": []
},
"outputContent": {
"role": "assistant",
"content": {
"cliente": "Acme Corporation",
"valor": 150000
}
},
"originalOutputContent": {
"role": "assistant",
"content": {
"cliente": "Acme Corp",
"valor": 150000
}
},
"createdBy": "api@company.com",
"approvedBy": "reviewer@company.com",
"approvedAt": "2025-01-15T11:00:00.000Z",
"completionRunId": "b83b1558-de5b-4e45-b517-7bececbdd154",
"workflowRunId": null,
"sourceType": "prompt",
"agentId": null,
"agentRef": null,
"agentSessionId": null,
"promptVersionId": "76065caa-c519-441a-8fe2-cc43e29664ab",
"promptApplicationId": "95cec438-6080-44fe-8275-28b16bd40178",
"workspaceId": "3f55cfd9-4427-4887-a181-d9ad39967802",
"metadata": {
"editedFields": [
{
"path": "cliente",
"author": "reviewer@company.com",
"editedAt": "2025-01-15T11:00:00.000Z",
"previousValue": "Acme Corp"
}
]
},
"tags": [
"priority",
"reviewed"
],
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T11:00:00.000Z",
"deletedAt": null
}Tasks
Update a task
Updates a task’s name, tags, output, or approves it.
PATCH
/
task
/
{id}
curl --request PATCH \
--url https://api.tela.com/task/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "completed"
}
'{
"id": "8b6d2c9a-1f4e-4c1b-9a1e-3c2d5e6f7a80",
"reference": 42,
"name": "Invoice-2025-001.pdf",
"status": "completed",
"rawInput": {
"application_id": "95cec438-6080-44fe-8275-28b16bd40178",
"variables": {
"document": {
"files": [
{
"file_url": "https://example.com/invoice.pdf"
}
]
}
}
},
"inputContent": {
"variables": {
"document": {
"files": [
{
"file_url": "https://example.com/invoice.pdf"
}
]
}
},
"messages": [],
"files": []
},
"outputContent": {
"role": "assistant",
"content": {
"cliente": "Acme Corporation",
"valor": 150000
}
},
"originalOutputContent": {
"role": "assistant",
"content": {
"cliente": "Acme Corp",
"valor": 150000
}
},
"createdBy": "api@company.com",
"approvedBy": "reviewer@company.com",
"approvedAt": "2025-01-15T11:00:00.000Z",
"completionRunId": "b83b1558-de5b-4e45-b517-7bececbdd154",
"workflowRunId": null,
"sourceType": "prompt",
"agentId": null,
"agentRef": null,
"agentSessionId": null,
"promptVersionId": "76065caa-c519-441a-8fe2-cc43e29664ab",
"promptApplicationId": "95cec438-6080-44fe-8275-28b16bd40178",
"workspaceId": "3f55cfd9-4427-4887-a181-d9ad39967802",
"metadata": {
"editedFields": [
{
"path": "cliente",
"author": "reviewer@company.com",
"editedAt": "2025-01-15T11:00:00.000Z",
"previousValue": "Acme Corp"
}
]
},
"tags": [
"priority",
"reviewed"
],
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T11:00:00.000Z",
"deletedAt": null
}Authorizations
Body
application/json
Response
The updated task