aventra.Developers
API referenceTasks

Update or complete a task

Change task details or mark it complete. Only supplied fields change.

Permissions: Tasks: read and write.

Behavior and retry rules

Set related_company_id: null to detach the company. user_id cannot be null: a task always has an assignee.

PATCH/tasks/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Create a key in Aventra → Innstillinger → API-nøkler.

In: header

Path Parameters

id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/tasks/4d73dca4-7537-4f9c-924e-8bccd354663f" \  -H "Authorization: Bearer $AVENTRA_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "completed": true  }'
{  "data": {    "id": "ea2fb66b-6c76-419f-a3e7-a9f8a2d6f47c",    "title": "Follow up on demo request",    "description": null,    "due_date": "2026-10-05T07:00:00Z",    "has_time_specified": true,    "user_id": "f52b3fd3-5ff4-4d93-91c5-6ac79e21cdd5",    "related_company_id": "4d73dca4-7537-4f9c-924e-8bccd354663f",    "completed": true,    "created_at": "2026-09-05T10:00:00Z",    "updated_at": "2026-09-05T10:00:00"  }}

See authentication, errors and retry guidance.