LiteLogDocs
English

REST API: Tasks

This page belongs to the REST API reference, which covers the address, authentication, scopes, pagination and errors. Every path is appended to https://api.litelog.de/api. In the examples $KEY stands for your API key; the example values are made up.

Overview

Call Purpose Scope
GET /v1/tasks List tasks tasks:read
POST /v1/tasks Create a task ("guest checked out → cleaning task") tasks:write
GET /v1/tasks/{id} Get a task tasks:read
PATCH /v1/tasks/{id} Edit task fields (title, priority, due date, assignment, …) tasks:write
GET /v1/tasks/{id}/checklist Read the checklist of a task tasks:read
PUT /v1/tasks/{id}/checklist Replace the checklist of a task tasks:write
POST /v1/tasks/{id}/state Move a task to another board state (e.g. complete it) tasks:write
POST /v1/tasks/{id}/archive Archive a task (soft archive — tasks are never deleted) tasks:write
POST /v1/tasks/{id}/restore Restore an archived task tasks:write
POST /v1/tasks/{id}/copy Copy a task: title, description, checklist, repetition and assignment tasks:write
GET /v1/tasks/{id}/comments List the comments of a task tasks:read
POST /v1/tasks/{id}/comments Add an internal comment to a task tasks:write
GET /v1/tasks/{id}/history Task history (activity log) tasks:read
GET /v1/tasks/{id}/completions Completions of a task tasks:read
POST /v1/tasks/{id}/completions/{completionId}/cancel Cancel a completion tasks:write
GET /v1/tasks/{id}/completions/{completionId}/reassign-target Where may this completion be moved to? tasks:read
POST /v1/tasks/{id}/completions/{completionId}/reassign Move a completion to the occurrence it belongs to tasks:write
POST /v1/tasks/{id}/notes Add a note to the task history tasks:write
GET /v1/tasks/{id}/bindings List the checkpoint/route links of a task tasks:read
PUT /v1/tasks/{id}/bindings Replace the checkpoint/route links of a task tasks:write
GET /v1/tasks/{id}/schedule Read the task's schedule (recurrence) tasks:read
PUT /v1/tasks/{id}/schedule Set the task's schedule (make it recurring, or change it from a date) tasks:write
GET /v1/tasks/{id}/schedule/versions List the rule versions of the task's series tasks:read
DELETE /v1/tasks/{id}/schedule/versions/{versionId} Discard a planned rule change (undo "change from a date") tasks:write
GET /v1/tasks/{id}/occurrences/exceptions List the live per-occurrence exceptions of the task's series tasks:read
POST /v1/tasks/{id}/occurrences/{date}/exception Skip or move ONE occurrence of the series tasks:write
DELETE /v1/tasks/{id}/occurrences/{date}/exception Undo the exception of ONE occurrence tasks:write
GET /v1/task-states List the tenant's board states (columns) tasks:read

GET /v1/tasks

List tasks (filters: state_id, property_id, due = overdue/today/week, assignee_id, priority); every row carries priority and assignee_ids. due together with state_id → 422. With due, assignee_id or priority the board order applies, and a key restricted to properties does not see tasks without a property there.

Scope: tasks:read

Parameters

Name In Type Required Description
page query integer no Default: 1; at least 1.
pageSize query integer no Default: 50; 1 – 100.
state_id query integer no —
property_id query integer no —
due query string no overdue, today, week — or one day YYYY-MM-DD: tasks due (due_date) or planned as a series occurrence on exactly that day (versions and exceptions of the series included).
search query string no Part of the title (case-insensitive), e.g. "Treppenhaus". At most 200 characters.
assignee_id query integer no Only tasks assigned to this account (any of the assignees).
priority query string no Values: HIGH, MEDIUM, LOW.
include_archived query string no Include archived tasks. Default false — lists return active tasks only. Values: true, false.

Example call

curl "https://api.litelog.de/api/v1/tasks?property_id=124&due=week" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "task_id": 4713,
      "uuid": "b84f1d6a-3e2c-4d75-9f08-6c5a4b3e2d1f",
      "title": "Wäschewechsel Wohnung 3",
      "description": "Handtücher und Bettwäsche tauschen.",
      "state_id": 601,
      "property_id": 124,
      "labels": [
        "Wäsche"
      ],
      "due_date": "2026-12-05",
      "due_time": null,
      "due_end_time": null,
      "archived_at": null,
      "form_template_id": null,
      "require_scan": false,
      "photo_required": true,
      "checklist_required": false,
      "assignee_role_ids": [],
      "created_at": "2026-12-01T08:20:00.000Z",
      "priority": "MEDIUM",
      "assignee_ids": [
        42
      ]
    },
    {
      "task_id": 4711,
      "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
      "title": "Endreinigung Wohnung 3",
      "description": null,
      "state_id": 601,
      "property_id": 124,
      "labels": [],
      "due_date": "2026-12-04",
      "due_time": "10:00",
      "due_end_time": null,
      "archived_at": null,
      "form_template_id": null,
      "require_scan": false,
      "photo_required": false,
      "checklist_required": false,
      "assignee_role_ids": [],
      "created_at": "2026-12-01T08:15:00.000Z",
      "priority": "HIGH",
      "assignee_ids": [
        41
      ]
    }
  ],
  "total": 2,
  "page": 1,
  "pageSize": 50
}

POST /v1/tasks

Create a task — idempotent via a client uuid. With checklist (up to 50 points), bindings (control points tag_id, patrol routes route_id) and schedule (recurrence plan) a complete task per control point is created in one call; the answer names checklist_count, bindings_count and schedule; if the uuid already existed, the existing task is returned and nothing is written again. A plan without a due date from today on → 422, errorCode: SCHEDULE_EMPTY (task, points and bindings exist already); a plan with a holiday rule on a property without country DE or without a region → 422, errorCode: PROPERTY_WITHOUT_REGION (set country and region, then set the plan again with PUT …/schedule); form_template_id together with a photo point → 422 (schema error on checklist).

Scope: tasks:write

Parameters

Name In Type Required Description
Idempotency-Key header string (uuid) no Idempotency key as a header (draft-ietf-httpapi-idempotency-key-header), an alternative to the body field uuid. Without uuid in the body the header becomes the uuid (and so the id of the record); a repeated call with the same key and the same body answers 200 with duplicate: true instead of creating twice. The same key with a DIFFERENT body ⇒ 422 IDEMPOTENCY_KEY_PAYLOAD_MISMATCH (since 22.10.2026; the body fingerprint — SHA-256 of the canonical JSON without the key itself — is stored on create; records created before carry none and replay as before). Header and body uuid that differ ⇒ 422 (path: ["Idempotency-Key"]). Must be a UUID on this endpoint.

Body fields (JSON)

Field Type Required Description
uuid string (uuid) no —
title string yes —
description string or null no —
priority string or null no Values: HIGH, MEDIUM, LOW, null.
labels array (string) no —
due_date string (date) or null no —
due_time string or null no HH:mm; requires due_date (400 otherwise).
due_end_time string or null no HH:mm; end of the due window. Requires due_time and must lie after it (400 otherwise); null = no end. With a schedule the rule carries end_time and this stays null.
property_id integer or null no —
assignee_id integer or null no —
assignee_role_ids array (integer) or null no Roles responsible for the task (GET /v1/roles; tenant roles only, 400 otherwise). Omitted, [] or null = no role. May be combined with assignee_id. At most 20 items.
state_id integer no —
form_template_id string (uuid) or null no Own, ACTIVE form template (400 otherwise) that must be filled in on completion.
require_scan boolean no —
photo_required boolean no One photo per completion of the whole task. Waived while the required checklist has photo points.
checklist_required boolean no All items are required: every point is ticked or marked not applicable with a reason, and every photo point has a photo. Off = points may stay open; open points show in the report. Task-level photo_required is waived while the required checklist has photo points. Default: false.
checklist array (object) no Points of the checklist, in order. Omitted or [] = no checklist. At most 50 items.
bindings array (object) no Same items as PUT /v1/tasks/{id}/bindings (CHECKPOINT + tag_id, ROUTE + route_id, optional role_ids). Replaces nothing — the task is new. At most 200 items.
schedule object no Same body as PUT /v1/tasks/{id}/schedule without effective_from (repeat_type, weekdays, monthdays, frequency, start_date, end_date, occurrence_count, start_time, type_freedays, anchor_mode, window_mode, tolerance_days, nonworking_rule, active). No change approval on create — there is no series to change yet.
change_reason string no Optional. Creating needs no reason (initial creation), even when the tenant requires reasons for changes; when given, it is stored with the task's created row (alternatively header X-Change-Reason). At most 2000 characters.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
  "title": "Endreinigung Wohnung 3",
  "property_id": 124,
  "due_date": "2026-12-04"
}'

Example response (201)

{
  "data": {
    "task_id": 4711,
    "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "title": "Endreinigung Wohnung 3",
    "state_id": 601,
    "checklist_count": 0,
    "form_template_id": null,
    "bindings_count": 0,
    "schedule": false
  }
}

GET /v1/tasks/{id}

Get a task.

Read a task (additionally checklist and checklist_source) / edit its fields (title, priority, due date, assignment, property property_id, form template form_template_id, scan requirement require_scan, photo requirement, the switch "All items are required" checklist_required, the checklist checklist as a whole, null removes it) — the board state is deliberately not editable here. Moving a task that is bound to control points or patrol routes of its current property is rejected (409, errorCode: TASK_BOUND_TO_PROPERTY, bindings: { control_points, routes }): detach the bindings first (PUT /v1/tasks/{id}/bindings), then patch again.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "task_id": 4711,
    "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "title": "Endreinigung Wohnung 3",
    "description": null,
    "state_id": 601,
    "property_id": 124,
    "labels": [],
    "due_date": "2026-12-04",
    "due_time": "10:00",
    "due_end_time": null,
    "archived_at": null,
    "form_template_id": null,
    "require_scan": false,
    "photo_required": false,
    "checklist_required": false,
    "assignee_role_ids": [],
    "created_at": "2026-12-01T08:15:00.000Z",
    "priority": "HIGH",
    "assignee_ids": [
      41
    ],
    "checklist": [
      {
        "item_id": 9101,
        "field_id": null,
        "title": "Betten frisch beziehen",
        "photo_required": false,
        "sort_order": 0
      },
      {
        "item_id": 9102,
        "field_id": null,
        "title": "Bad reinigen",
        "photo_required": true,
        "sort_order": 1
      },
      {
        "item_id": 9103,
        "field_id": null,
        "title": "Müll entsorgen",
        "photo_required": false,
        "sort_order": 2
      }
    ],
    "checklist_source": "items"
  }
}

PATCH /v1/tasks/{id}

Edit task fields (title, priority, due date, assignment, …).

Read a task (additionally checklist and checklist_source) / edit its fields (title, priority, due date, assignment, property property_id, form template form_template_id, scan requirement require_scan, photo requirement, the switch "All items are required" checklist_required, the checklist checklist as a whole, null removes it) — the board state is deliberately not editable here. Moving a task that is bound to control points or patrol routes of its current property is rejected (409, errorCode: TASK_BOUND_TO_PROPERTY, bindings: { control_points, routes }): detach the bindings first (PUT /v1/tasks/{id}/bindings), then patch again.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
title string no —
description string or null no —
priority string or null no Values: HIGH, MEDIUM, LOW, null.
labels array (string) or null no —
due_date string (date) or null no —
due_time string or null no HH:mm; null clears the time. Clearing due_date clears due_time as well; a time without a date is rejected (400).
due_end_time string or null no HH:mm; end of the due window, null clears it. Requires a due_time (400 when the task has none or the end is not after it). Clearing due_date or due_time clears the end as well; a due_time moved onto or past the end clears the end silently.
property_id integer or null no —
assignee_id integer or null no —
assignee_ids array (integer) or null no —
assignee_role_ids array (integer) or null no Full set of roles responsible (GET /v1/roles); [] or null removes all roles, omitted = unchanged. Independent of assignee_ids. At most 20 items.
photo_required boolean no One photo per completion of the whole task. Waived while the required checklist has photo points.
require_scan boolean no —
checklist_required boolean no All items are required: every point is ticked or marked not applicable with a reason, and every photo point has a photo. Off = points may stay open; open points show in the report. Task-level photo_required is waived while the required checklist has photo points.
form_template_id string (uuid) or null no Own, ACTIVE form template (400 otherwise); null detaches the form.
checklist array (object) or null no Complete new checklist (full replace); null or [] removes it. field_id is tolerated for older clients and ignored. At most 50 items.

Example call

curl -X PATCH "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "priority": "HIGH",
  "due_time": "10:00",
  "assignee_ids": [
    41
  ]
}'

Example response (200)

{
  "data": {
    "task_id": 4711,
    "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "title": "Endreinigung Wohnung 3",
    "description": null,
    "state_id": 601,
    "property_id": 124,
    "labels": [],
    "due_date": "2026-12-04",
    "due_time": "10:00",
    "due_end_time": null,
    "archived_at": null,
    "form_template_id": null,
    "require_scan": false,
    "photo_required": false,
    "checklist_required": false,
    "assignee_role_ids": [],
    "created_at": "2026-12-01T08:15:00.000Z"
  }
}

GET /v1/tasks/{id}/checklist

Read the checklist of a task.

The checklist of a task has up to 50 points with title and photo_required. A room list is one task with points, not a form and not single tasks per point. PUT replaces the list as a whole (items); an empty list removes the checklist. photo_required on a point only blocks completion when checklist_required is set on the task (switch "All items are required"). source says where the points live: items or null (no checklist). form_template_id and field_id stay in the response for older clients and are always null; a field_id sent along is ignored. The lean way for "one proof per room": photo_required on the task instead of on the points.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/checklist" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "source": "items",
    "form_template_id": null,
    "checklist_required": false,
    "checklist_template_id": null,
    "items": [
      {
        "item_id": 9101,
        "field_id": null,
        "title": "Betten frisch beziehen",
        "photo_required": false,
        "sort_order": 0
      },
      {
        "item_id": 9102,
        "field_id": null,
        "title": "Bad reinigen",
        "photo_required": true,
        "sort_order": 1
      },
      {
        "item_id": 9103,
        "field_id": null,
        "title": "Müll entsorgen",
        "photo_required": false,
        "sort_order": 2
      }
    ]
  }
}

PUT /v1/tasks/{id}/checklist

Replace the checklist of a task.

The checklist of a task has up to 50 points with title and photo_required. A room list is one task with points, not a form and not single tasks per point. PUT replaces the list as a whole (items); an empty list removes the checklist. photo_required on a point only blocks completion when checklist_required is set on the task (switch "All items are required"). source says where the points live: items or null (no checklist). form_template_id and field_id stay in the response for older clients and are always null; a field_id sent along is ignored. The lean way for "one proof per room": photo_required on the task instead of on the points.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
items array (object) yes At most 50 items.

Example call

curl -X PUT "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/checklist" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "items": [
    {
      "title": "Betten frisch beziehen"
    },
    {
      "title": "Bad reinigen",
      "photo_required": true
    },
    {
      "title": "Müll entsorgen"
    }
  ]
}'

Example response (200)

{
  "data": {
    "source": "items",
    "form_template_id": null,
    "checklist_required": false,
    "checklist_template_id": null,
    "items": [
      {
        "item_id": 9101,
        "field_id": null,
        "title": "Betten frisch beziehen",
        "photo_required": false,
        "sort_order": 0
      },
      {
        "item_id": 9102,
        "field_id": null,
        "title": "Bad reinigen",
        "photo_required": true,
        "sort_order": 1
      },
      {
        "item_id": 9103,
        "field_id": null,
        "title": "Müll entsorgen",
        "photo_required": false,
        "sort_order": 2
      }
    ]
  }
}

POST /v1/tasks/{id}/state

Move a task to another board column (e.g. complete it).

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
state_id integer yes —
completed_at string (date-time) no —

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/state" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "state_id": 602
}'

Example response (200)

{
  "data": {
    "task_id": 4711,
    "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "state_id": 602,
    "completed_at": null
  }
}

POST /v1/tasks/{id}/archive

The task disappears from the lists; its history and its completions are kept. GET /v1/tasks?include_archived=true still shows it.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
change_reason string no [code] text, e.g. [other] pilot ended.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/archive" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "change_reason": "[other] Buchung storniert"
}'

Example response (200)

{
  "data": {
    "task_id": 4711,
    "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "archived_at": "2026-12-07T14:20:00.000Z",
    "changed": true
  }
}

POST /v1/tasks/{id}/restore

The task is back in the lists afterwards.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
change_reason string no —

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/restore" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "change_reason": "[correction] Versehentlich archiviert"
}'

Example response (200)

{
  "data": {
    "task_id": 4711,
    "uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "archived_at": null,
    "changed": true
  }
}

POST /v1/tasks/{id}/copy

Copy a task. Copied: title (with "(Kopie)" unless title is given), description, priority, labels, assignees and assigned roles, the proof switches, signature requirement, form, checklist, repetition and the links to control points and patrol routes that still exist. The copy stays in the property of the original and names its origin (source_task_uuid). Never copied: completions, history, comments, time entries, incidents and the due date of a one-off task. Archived or inactive assignees are dropped and listed in copy.issues[]. The original is only read.

Needs the same rights as creating; as with POST /v1/tasks no change reason is needed. A copied series runs from start_date; if it has no date from then on, the call answers 422 COPY_SERIES_HAS_NO_DATE. The Idempotency-Key becomes the uuid of the copy: the same key again answers 200 with duplicate: true and the copy created first. If the key already belongs to a task that is not a copy of this original, or comes with a different title or start_date: 422 IDEMPOTENCY_KEY_PAYLOAD_MISMATCH. Foreign or hidden task: 404.

Scope: tasks:write

The key also needs the read scope tasks:read: the answer carries the values of the original.

Parameters

Name In Type Required Description
id path string (uuid) yes The task to copy (its uuid).
Idempotency-Key header string (uuid) no Idempotency key as a header (draft-ietf-httpapi-idempotency-key-header), an alternative to the body field uuid. Without uuid in the body the header becomes the uuid (and so the id of the record); a repeated call with the same key and the same body answers 200 with duplicate: true instead of creating twice. The same key with a DIFFERENT body ⇒ 422 IDEMPOTENCY_KEY_PAYLOAD_MISMATCH (since 22.10.2026; the body fingerprint — SHA-256 of the canonical JSON without the key itself — is stored on create; records created before carry none and replay as before). Header and body uuid that differ ⇒ 422 (path: ["Idempotency-Key"]). Must be a UUID on this endpoint.

Body fields (JSON)

Field Type Required Description
uuid string (uuid) no Idempotency key (alternatively header Idempotency-Key); becomes the uuid of the copy.
title string no Default: title of the original with "(Kopie)", shortened to 500 characters. At most 500 characters.
start_date string (date) no Day from which a copied series runs (YYYY-MM-DD, not in the past). Default: today in the time zone of the property.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/copy" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: 7c1d9e40-2b6a-4f3e-8a15-9d0c4b7e6f21" \
  -d '{
  "start_date": "2026-12-07"
}'

Example response (201)

{
  "data": {
    "task_id": 4725,
    "uuid": "7c1d9e40-2b6a-4f3e-8a15-9d0c4b7e6f21",
    "title": "Endreinigung Wohnung 3 (Kopie)",
    "property_id": 124,
    "source_task_uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63"
  },
  "created": true,
  "copy": {
    "issues": []
  }
}

GET /v1/tasks/{id}/comments

List the comments of a task.

Read comments (internal ones included, limit up to 50) / write a comment — through the API it is always internal: the customer does not see it and no e-mail is sent. Reply to customers in the portal.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —
limit query integer no Default: 25; 1 – 50.

Example call

curl "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/comments?limit=10" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "comment_id": 5501,
      "body": "Gast hat Late Check-out bis 11 Uhr gebucht.",
      "author_account_id": 42,
      "author_name": "Max Mustermann",
      "author_is_customer": false,
      "internal": true,
      "created_at": "2026-12-03T14:40:00.000Z"
    },
    {
      "comment_id": 5502,
      "body": "Bettwäsche liegt im Lager bereit.",
      "author_account_id": 5,
      "author_name": "PMS-Integration",
      "author_is_customer": false,
      "internal": true,
      "created_at": "2026-12-03T15:05:00.000Z"
    }
  ],
  "has_more": false
}

POST /v1/tasks/{id}/comments

Add an internal comment to a task.

Read comments (internal ones included, limit up to 50) / write a comment — through the API it is always internal: the customer does not see it and no e-mail is sent. Reply to customers in the portal.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
body string yes At most 10000 characters.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/comments" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "body": "Bettwäsche liegt im Lager bereit."
}'

Example response (201)

{
  "data": {
    "comment_id": 5502,
    "task_uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "internal": true,
    "created_at": "2026-12-03T15:05:00.000Z"
  }
}

GET /v1/tasks/{id}/history

Task history, newest first; page on with starting_after = task_log_id of the last entry.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —
limit query integer no Default: 25; 1 – 50.
starting_after query integer no —

Example call

curl "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/history?limit=2" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "task_log_id": 90312,
      "log_type": "ADD_NOTE",
      "msg": "Schlüssel beim Hausmeister abgeholt.",
      "timestamp": "2026-12-04T09:05:00.000Z",
      "actor_account_id": 5,
      "actor_name": "PMS-Integration"
    },
    {
      "task_log_id": 90298,
      "log_type": "CHANGE_CUSTOM_STATE",
      "msg": "In Bearbeitung",
      "timestamp": "2026-12-04T08:50:00.000Z",
      "actor_account_id": 5,
      "actor_name": "PMS-Integration"
    }
  ],
  "has_more": true
}

GET /v1/tasks/{id}/completions

Completions of the task, newest first, cancelled ones included (cancelled); filter occurrence_date, page on with starting_after = completion_id of the last entry.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —
limit query integer no Default: 25; 1 – 50.
starting_after query string (uuid) no —
occurrence_date query string (date) no Only the completions of this occurrence of the series.

Example call

curl "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/completions?limit=10" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "completion_id": "c1d4e7a2-5b8f-4c36-a9d1-0e2f3a4b5c6d",
      "occurrence_date": "2026-12-09",
      "completed_at": "2026-12-16T07:42:00.000Z",
      "account_id": 41,
      "completed_without_scan": false,
      "form_response_id": null,
      "cancelled": false,
      "cancelled_at": null,
      "cancelled_by_account_id": null,
      "cancel_reason_code": null
    },
    {
      "completion_id": "7e5a9b3c-2d6f-4a81-b4c7-8f1e0d2c3b4a",
      "occurrence_date": "2026-12-02",
      "completed_at": "2026-12-02T07:55:00.000Z",
      "account_id": 42,
      "completed_without_scan": true,
      "form_response_id": null,
      "cancelled": true,
      "cancelled_at": "2026-12-02T09:30:00.000Z",
      "cancelled_by_account_id": 5,
      "cancel_reason_code": "correction"
    }
  ],
  "has_more": false
}

POST /v1/tasks/{id}/completions/{completionId}/cancel

Cancel a completion (permission: archive tasks). Required: reason_code, plus reason_text for other. The occurrence is open again afterwards. If the task requires a digital signature, cancelling works in the portal only (422). If the company uses "cancel with approval", a request is filed (approval_pending). 409, errorCode: COMPLETION_ALREADY_CANCELLED, when already cancelled.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —
completionId path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
reason_code string yes Values: correction, new_requirement, customer_request, error_fix, periodic_review, other.
reason_text string no Required for other. At most 2000 characters.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/completions/7e5a9b3c-2d6f-4a81-b4c7-8f1e0d2c3b4a/cancel" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "reason_code": "correction",
  "reason_text": "Doppelt erfasst"
}'

Example response (200)

{
  "data": {
    "completion_id": "7e5a9b3c-2d6f-4a81-b4c7-8f1e0d2c3b4a",
    "task_uuid": "9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90",
    "occurrence_date": "2026-12-02",
    "cancelled": true,
    "cancelled_at": "2026-12-02T09:30:00.000Z",
    "cancel_reason_code": "correction",
    "task_reopened": false
  }
}

GET /v1/tasks/{id}/completions/{completionId}/reassign-target

Where may this completion be moved to?.

Correct the occurrence: move a completion that sits on the wrong occurrence of the series to the right one without cancelling it (permission: archive tasks). GET returns the target (target) or the reason it is refused (blocker); POST writes with occurrence_date = target and a mandatory reason (reason_code, reason_text for other). The target cannot be chosen: it is the occurrence whose window (occurrence ± tolerance) contains the day of the completion. Time, account and proof stay. Refusal: 409 with errorCode (REASSIGN_ALREADY_VALID, REASSIGN_TARGET_OCCUPIED, REASSIGN_SIGNED …).

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —
completionId path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/completions/c1d4e7a2-5b8f-4c36-a9d1-0e2f3a4b5c6d/reassign-target" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "completion_id": "c1d4e7a2-5b8f-4c36-a9d1-0e2f3a4b5c6d",
    "task_uuid": "9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90",
    "completed_day": "2026-12-16",
    "current": {
      "occurrence_date": "2026-12-09",
      "due": "2026-12-09",
      "window_from": "2026-12-09",
      "window_to": "2026-12-09"
    },
    "target": {
      "occurrence_date": "2026-12-16",
      "due": "2026-12-16",
      "window_from": "2026-12-16",
      "window_to": "2026-12-16"
    },
    "blocker": null
  }
}

POST /v1/tasks/{id}/completions/{completionId}/reassign

Move a completion to the occurrence it belongs to.

Correct the occurrence: move a completion that sits on the wrong occurrence of the series to the right one without cancelling it (permission: archive tasks). GET returns the target (target) or the reason it is refused (blocker); POST writes with occurrence_date = target and a mandatory reason (reason_code, reason_text for other). The target cannot be chosen: it is the occurrence whose window (occurrence ± tolerance) contains the day of the completion. Time, account and proof stay. Refusal: 409 with errorCode (REASSIGN_ALREADY_VALID, REASSIGN_TARGET_OCCUPIED, REASSIGN_SIGNED …).

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —
completionId path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
occurrence_date string (date) yes —
reason_code string yes Values: correction, new_requirement, customer_request, error_fix, periodic_review, other.
reason_text string no Required for other. At most 2000 characters.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/completions/c1d4e7a2-5b8f-4c36-a9d1-0e2f3a4b5c6d/reassign" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "occurrence_date": "2026-12-16",
  "reason_code": "other",
  "reason_text": "Falsche Woche geöffnet"
}'

Example response (200)

{
  "data": {
    "completion_id": "c1d4e7a2-5b8f-4c36-a9d1-0e2f3a4b5c6d",
    "task_uuid": "9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90",
    "occurrence_date": "2026-12-16",
    "previous_occurrence_date": "2026-12-09"
  }
}

POST /v1/tasks/{id}/notes

Add a note to the history (note).

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
note string yes At most 10000 characters.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/notes" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "note": "Schlüssel beim Hausmeister abgeholt."
}'

Example response (201)

{
  "data": {
    "task_uuid": "3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63",
    "task_log_id": 90312,
    "created_at": "2026-12-04T09:05:00.000Z"
  }
}

GET /v1/tasks/{id}/bindings

List the checkpoint/route links of a task.

Read or replace the task's links to control points (tag_id) and patrol routes (route_id) as a whole — a route binding takes over the task's rhythm.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/bindings" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "binding_id": 7701,
      "binding_type": "CHECKPOINT",
      "tag_id": 311,
      "route_id": null,
      "property_id": 124,
      "role_ids": null,
      "created_at": "2026-12-01T08:16:00.000Z"
    }
  ]
}

PUT /v1/tasks/{id}/bindings

Replace the checkpoint/route links of a task.

Read or replace the task's links to control points (tag_id) and patrol routes (route_id) as a whole — a route binding takes over the task's rhythm.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
bindings array (object) yes At most 200 items.

Example call

curl -X PUT "https://api.litelog.de/api/v1/tasks/3f2b8c1e-7a4d-4e9b-9c56-2d1f0a8b7e63/bindings" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "bindings": [
    {
      "binding_type": "CHECKPOINT",
      "tag_id": 311
    },
    {
      "binding_type": "CHECKPOINT",
      "tag_id": 312,
      "role_ids": [
        3
      ]
    }
  ]
}'

Example response (200)

{
  "data": [
    {
      "binding_id": 7702,
      "binding_type": "CHECKPOINT",
      "tag_id": 311,
      "route_id": null,
      "property_id": 124,
      "role_ids": null,
      "created_at": "2026-12-02T10:05:00.000Z"
    },
    {
      "binding_id": 7703,
      "binding_type": "CHECKPOINT",
      "tag_id": 312,
      "route_id": null,
      "property_id": 124,
      "role_ids": [
        3
      ],
      "created_at": "2026-12-02T10:05:00.000Z"
    }
  ]
}

GET /v1/tasks/{id}/schedule

Read the task's schedule (recurrence).

Read or set the task's recurrence plan (daily/weekly/monthly, time of day, holiday rule, end) — turns a one-off into a routine; with a control-point binding it is completed per occurrence by scanning the point. Without effective_from the PUT replaces the whole series; with effective_from (tomorrow at the earliest, after the series start) the new rule applies from that day only, earlier occurrences stay — the response reports the planned change in upcoming_change plus the counters removed_exceptions and orphaned_completions. Subject to change approval: with change_reason the server answers 200 with approval_pending: true and a batch_id; nothing is written until approved. A holiday rule first refreshes the property's public holidays and needs a property with country DE and a region, else 422 with errorCode: PROPERTY_WITHOUT_REGION. An active plan that yields no due date from today on is rejected with 422 and errorCode: SCHEDULE_EMPTY, an effective_from that is too early with EFFECTIVE_FROM_TOO_EARLY; frequency is capped at 365, weekdays and monthdays are stored deduplicated and sorted.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/schedule" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "schedule_id": 318,
      "repeat_type": "weekly",
      "weekdays": [
        3
      ],
      "monthdays": [],
      "frequency": 1,
      "start_date": "2026-12-02",
      "end_date": null,
      "occurrence_count": null,
      "start_time": "08:00:00",
      "end_time": "12:00:00",
      "type_freedays": "none",
      "anchor_mode": "fixed",
      "window_mode": "none",
      "tolerance_days": null,
      "nonworking_rule": "skip",
      "active": true,
      "effective_from": "2026-12-02",
      "upcoming_change": null
    }
  ]
}

PUT /v1/tasks/{id}/schedule

Set the task's schedule (make it recurring, or change it from a date).

Read or set the task's recurrence plan (daily/weekly/monthly, time of day, holiday rule, end) — turns a one-off into a routine; with a control-point binding it is completed per occurrence by scanning the point. Without effective_from the PUT replaces the whole series; with effective_from (tomorrow at the earliest, after the series start) the new rule applies from that day only, earlier occurrences stay — the response reports the planned change in upcoming_change plus the counters removed_exceptions and orphaned_completions. Subject to change approval: with change_reason the server answers 200 with approval_pending: true and a batch_id; nothing is written until approved. A holiday rule first refreshes the property's public holidays and needs a property with country DE and a region, else 422 with errorCode: PROPERTY_WITHOUT_REGION. An active plan that yields no due date from today on is rejected with 422 and errorCode: SCHEDULE_EMPTY, an effective_from that is too early with EFFECTIVE_FROM_TOO_EARLY; frequency is capped at 365, weekdays and monthdays are stored deduplicated and sorted.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —

Body fields (JSON)

Field Type Required Description
repeat_type string yes Values: none, daily, weekly, monthly.
weekdays array (integer) no 0 = Sunday … 6 = Saturday (weekly only). Duplicates are removed and the list is sorted.
monthdays array (integer) no Duplicates are removed and the list is sorted.
frequency integer no Every n days/weeks/months. Default: 1; 1 – 365.
start_date string (date) yes —
end_date string (date) or null no Exclusive with occurrence_count.
occurrence_count integer or null no 1 – 1000.
start_time string or null no —
end_time string or null no Optional end of the execution window; needs start_time and must be after it (400 otherwise). Omitted = null (full replace).
type_freedays string no Values: none, disable, enabled; Default: none.
anchor_mode string no Values: fixed, completion; Default: fixed.
window_mode string no Values: none, days, month; Default: none.
tolerance_days integer or null no 0 – 180.
nonworking_rule string no Values: skip, prev, next; Default: skip.
active boolean no Default: true.
effective_from string (date) no Change the series from this day (≥ tomorrow in the property's timezone, > start_date). Omit for a full replace.
change_reason string no Required when the tenant's change approval covers task schedules.

Example call

curl -X PUT "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/schedule" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "repeat_type": "weekly",
  "weekdays": [
    3
  ],
  "frequency": 1,
  "start_date": "2026-12-02",
  "start_time": "08:00",
  "end_time": "12:00"
}'

Example response (200)

{
  "data": {
    "schedule_id": 318,
    "repeat_type": "weekly",
    "weekdays": [
      3
    ],
    "monthdays": [],
    "frequency": 1,
    "start_date": "2026-12-02",
    "end_date": null,
    "occurrence_count": null,
    "start_time": "08:00",
    "end_time": "12:00",
    "type_freedays": "none",
    "anchor_mode": "fixed",
    "window_mode": "none",
    "tolerance_days": null,
    "nonworking_rule": "skip",
    "active": true,
    "effective_from": "2026-12-02",
    "upcoming_change": null,
    "orphaned_completions": 0,
    "removed_exceptions": 0
  }
}

GET /v1/tasks/{id}/schedule/versions

List the rule versions of the series, ascending by effective_from — the first one is the base version from the series start.

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/schedule/versions" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "version_id": 11,
      "effective_from": "2026-12-02",
      "repeat_type": "weekly",
      "weekdays": [
        3
      ],
      "monthdays": [],
      "frequency": 1,
      "start_time": "08:00:00",
      "end_time": "12:00:00",
      "type_freedays": "none",
      "anchor_mode": "fixed",
      "window_mode": "none",
      "tolerance_days": null,
      "nonworking_rule": "skip"
    },
    {
      "version_id": 12,
      "effective_from": "2027-01-08",
      "repeat_type": "weekly",
      "weekdays": [
        5
      ],
      "monthdays": [],
      "frequency": 1,
      "start_time": "08:00:00",
      "end_time": "12:00:00",
      "type_freedays": "none",
      "anchor_mode": "fixed",
      "window_mode": "none",
      "tolerance_days": null,
      "nonworking_rule": "skip"
    }
  ]
}

DELETE /v1/tasks/{id}/schedule/versions/{versionId}

Discard a change that is not yet in force (undo "change the series from a date"); exceptions it had orphaned come back. The base version and versions already in force stay (422, errorCode: VERSION_IS_BASE or VERSION_NOT_FUTURE). Subject to change approval (change_reason in the body or header X-Change-Reason).

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —
versionId path integer yes At least 1.

Body fields (JSON)

Field Type Required Description
change_reason string no —

Example call

curl -X DELETE "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/schedule/versions/12" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "version_id": 12,
    "effective_from": "2027-01-08",
    "removed_exceptions": 0,
    "restored_exceptions": 0,
    "upcoming_change": null
  }
}

GET /v1/tasks/{id}/occurrences/exceptions

List all live exceptions of the series (moved and skipped occurrences, key original_date).

Scope: tasks:read

Parameters

Name In Type Required Description
id path string (uuid) yes —

Example call

curl "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/occurrences/exceptions" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "original_date": "2026-12-23",
      "action": "move",
      "new_date": "2026-12-21",
      "new_time": "09:30",
      "reason": "Betriebsferien ab 23.12.",
      "created_at": "2026-12-10T10:12:00.000Z"
    },
    {
      "original_date": "2026-12-30",
      "action": "skip",
      "new_date": null,
      "new_time": null,
      "reason": null,
      "created_at": "2026-12-10T10:13:00.000Z"
    }
  ]
}

POST /v1/tasks/{id}/occurrences/{date}/exception

Move exactly one occurrence (action: move, new_date, optional new_time) or drop it (action: skip); {date} is the original due day per rule, reason goes to the task history. Only occurrences from today on, not completed ones (409, errorCode: OCCURRENCE_DONE), target day still free (409, OCCURRENCE_TARGET_TAKEN); 422 with NO_SERIES, OCCURRENCE_IN_PAST, MOVE_TARGET_IN_PAST or NOT_AN_OCCURRENCE. Subject to change approval (change_reason); impossible requests are rejected before an approval request is filed.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —
date path string (date) yes —

Body fields (JSON)

Field Type Required Description
action string yes Values: skip, move.
new_date string (date) or null no Required for move, forbidden for skip.
new_time string or null no Optional for move.
reason string or null no At most 500 characters.
change_reason string no Required when the tenant's change approval covers task schedules.

Example call

curl -X POST "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/occurrences/2026-12-23/exception" \
  -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{
  "action": "move",
  "new_date": "2026-12-21",
  "new_time": "09:30",
  "reason": "Betriebsferien ab 23.12."
}'

Example response (200)

{
  "data": {
    "original_date": "2026-12-23",
    "action": "move",
    "new_date": "2026-12-21",
    "new_time": "09:30"
  }
}

DELETE /v1/tasks/{id}/occurrences/{date}/exception

Undo the exception of an occurrence — a moved occurrence returns to its original day, a skipped one is due again (404, errorCode: EXCEPTION_NOT_FOUND without a live exception). Subject to change approval.

Scope: tasks:write

Parameters

Name In Type Required Description
id path string (uuid) yes —
date path string (date) yes —

Body fields (JSON)

Field Type Required Description
change_reason string no —

Example call

curl -X DELETE "https://api.litelog.de/api/v1/tasks/9a6e2d47-1c3b-4f58-8e0a-5b7c4d2e1f90/occurrences/2026-12-23/exception" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": {
    "original_date": "2026-12-23",
    "removed": true
  }
}

GET /v1/task-states

List the tenant's board columns (provides the state_id values).

Scope: tasks:read

Example call

curl "https://api.litelog.de/api/v1/task-states" \
  -H "X-Api-Key: $KEY"

Example response (200)

{
  "data": [
    {
      "state_id": 601,
      "title": "Offen",
      "index": -1
    },
    {
      "state_id": 602,
      "title": "In Bearbeitung",
      "index": 1
    },
    {
      "state_id": 603,
      "title": "Abgebrochen",
      "index": 100
    },
    {
      "state_id": 604,
      "title": "Erledigt",
      "index": 200
    }
  ]
}