API – Tasks¶
Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.
Priority is 1 (highest) to 5 (lowest). Default 3.
Permissions¶
Applies to approval tasks and notifications on the /api/tasks paths (below in Approval tasks).
- A task belongs to its assignee (
Tasks.To, master user id). Only the assignee or the tenant super admin (permission*999) can complete, decline, decline with return, return or reassign it. - It can be cancelled by the assignee, the creator of the task (
From, e.g. the requester withdrawing the request) or the super admin. - The task detail is visible only to the assignee, the creator or the super admin.
- Update (
PUT), delete (DELETE) and generic create (POST /api/tasks) are for the super admin only. - Lists (
/api/tasks,pending-count,pending-summary) always return the caller's own tasks. TheuserIdparameter is honoured only for the super admin and ignored for everybody else. - Personal API tokens follow the same rules as the signed-in user. A token with read-only scope cannot call
POST,PUTorDELETE.
When a rule is violated the API returns 403:
{
"success": false,
"error": "Access denied"
}
GET /api/todo¶
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | no | default 1 |
limit |
integer | no | default 20 |
filter |
string | no | assigned_to_me (default), assigned_by_me, my_team, all |
project_id |
integer | no | |
priority |
integer | no | 1–5 |
resolved |
string | no | |
search |
string | no | |
deadline_from, deadline_to |
date | no | |
sort_by |
string | no | default created_at |
sort_order |
string | no | ASC or DESC |
all is visible only to someone with full permission on tasks. my_team only to a manager.
PHP
$res = innovanet('GET', '/api/todo?filter=assigned_to_me&page=1&limit=20');
Response 200
{
"success": true,
"data": {
"items": [
{
"id": 12,
"subject": "Zavolať klientovi",
"priority": 3,
"owner_id": 15,
"owner_name": "Jana Nováková",
"created_by": 8,
"project_id": 42,
"deadline": "2026-11-07 16:00:00",
"resolved_at": null,
"tags": []
}
],
"total": 1,
"page": 1,
"limit": 20,
"total_pages": 1,
"can_view_my_team": false
}
}
Detail: GET /api/todo/12. People a task can be assigned to: GET /api/todo/users. Tags: GET /api/todo/tags.
POST /api/todo¶
| Field | Type | Required | Description |
|---|---|---|---|
subject |
string | yes | at most 500 |
owner_id |
integer | yes | assignee, master user id from GET /api/todo/users |
priority |
integer | no | 1–5 |
project_id |
integer | no | |
deadline_date |
date | no | YYYY-MM-DD |
deadline_time |
string | no | HH:MM, default 23:59 |
description |
string | no | at most 20000 |
customer_name |
string | no |
Request
{
"subject": "Zavolať klientovi",
"owner_id": 15,
"priority": 2,
"project_id": 42,
"deadline_date": "2026-11-07",
"deadline_time": "16:00",
"description": "Dohodnúť termín servisu"
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/todo" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Content-Type: application/json" \
-d "{\"subject\":\"Zavolať klientovi\",\"owner_id\":15,\"priority\":2,\"deadline_date\":\"2026-11-07\"}"
PHP
$res = innovanet('POST', '/api/todo', [
'subject' => 'Zavolať klientovi',
'owner_id' => 15,
'priority' => 2,
'deadline_date' => '2026-11-07',
'deadline_time' => '16:00',
]);
Response 201
{
"success": true,
"data": {
"id": 12,
"subject": "Zavolať klientovi",
"priority": 2,
"owner_id": 15,
"resolved_at": null
}
}
Status and note¶
Updating fields: PUT /api/todo/12 with the fields you change.
Resolved: POST /api/todo/12/resolve with no body. Response 200, data is the task with resolved_at filled in.
In progress: POST /api/todo/12/in-progress with no body.
Reopened: POST /api/todo/12/reopen with no body.
Note: POST /api/todo/12/notes. reason_id 4 is a comment.
{ "reason_id": 4, "comment": "Klient nedvíha" }
The 201 response has note_id and data is the list of notes. List: GET /api/todo/12/notes. Move to another assignee: POST /api/todo/12/move with a required owner_id.
Other paths¶
Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.
GET /api/todo/export¶
Parameters
| Field | Type | Required |
|---|---|---|
filter |
string | no |
project_id |
string | no |
priority |
string | no |
resolved |
string | no |
search |
string | no |
deadline_from |
string | no |
deadline_to |
string | no |
sort_by |
string | no |
sort_order |
string | no |
tag_ids |
string | no |
The API reads these fields. A field is required when the table says yes.
Response – The response is a file, not JSON.
GET /api/todo/reason-labels¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
PATCH /api/todo/{id}/deadline¶
Body
| Field | Type | Required |
|---|---|---|
deadline |
string | yes |
{
"deadline": "text"
}
$res = innovanet('PATCH', '/api/todo/1/deadline', [
'deadline' => 'text',
]);
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/todo/{id}/attachments¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/todo/{id}/attachments¶
Body
| Field | Type | Required |
|---|---|---|
file |
file | yes |
The file is sent as multipart, not in JSON.
Response 201 – Envelope { "success": true, "data": ... }.
DELETE /api/todo/{id}/attachments/{attachmentId}¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/todo/{id}/attachments/{attachmentId}/download¶
No body.
Response – The response is a file, not JSON.
Approval tasks¶
The /api/tasks paths are approval steps and notifications created by modules (requests, absences, assets, ServiceDesk). The rules are in Permissions. The response uses the envelope { "success": true, "data": ... }.
| Path | Who can | Note |
|---|---|---|
GET /api/tasks |
the caller (userId super admin only) |
filters status, dateFrom, dateTo, app, fromUserId, activeOnly |
GET /api/tasks/pending-count |
the caller (userId super admin only) |
data.count |
GET /api/tasks/pending-summary |
the caller (userId super admin only) |
counts per application |
GET /api/tasks/by-app/{app} |
assignee or creator (super admin all) | other tasks of the application are not returned |
GET /api/tasks/{id} |
assignee, creator, super admin | otherwise 403 |
POST /api/tasks/{id}/complete |
assignee, super admin | optional reason |
POST /api/tasks/{id}/decline |
assignee, super admin | required reason |
POST /api/tasks/{id}/decline-with-return |
assignee, super admin | required reason, optional stepsBack |
POST /api/tasks/{id}/return |
assignee, super admin | declined task only, stepsBack, reason |
POST /api/tasks/{id}/reassign |
assignee, super admin | required userId |
POST /api/tasks/{id}/cancel |
assignee, creator, super admin | optional reason |
POST /api/tasks/batch-approve |
assignee, super admin | see below |
POST /api/tasks/notification |
any user | the sender is always the caller, only the super admin may pass from |
POST /api/tasks |
super admin only | generic create |
PUT /api/tasks/{id} |
super admin only | |
DELETE /api/tasks/{id} |
super admin only |
POST /api/tasks/batch-approve¶
Approves several tasks at once. A regular user approves only the tasks assigned to them (the super admin any). The rest are counted in failed and have the error Access denied in errors[taskId].
{
"taskIds": [101, 102, 103],
"reason": "All good"
}
Response 200
{
"success": true,
"data": {
"completed": 2,
"failed": 1,
"completedIds": [101, 102],
"errors": {
"103": "Access denied"
}
},
"message": "2 task(s) approved, 1 failed"
}
Want to try this feature? Start your innovanet trial →
Access rights (2026-11)
PUT /api/todo/{id}:depends_on_idsmay only contain tasks the user can see, otherwise the response is422. Dependencies on tasks the user cannot see are not shown in the detail.POST /api/todo/{id}/move:owner_idmust be a user of the company (otherwise422), as on create and update.project_idon create and update needs access to the project (projectspermission or project owner, otherwise403). The name and code of a project the user cannot see are returned asnullin the list and detail.