REST-API: Formulare
Diese Seite gehört zur REST-API-Referenz. Dort stehen Adresse, Anmeldung, Scopes, Paginierung und Fehler. Alle Pfade hängen an https://api.litelog.de/api. In den Beispielen steht $KEY für Ihren API-Schlüssel; die Beispielwerte sind erfunden.
Übersicht
| Aufruf | Zweck | Scope |
|---|---|---|
GET /v1/form-responses |
Formular-Antworten auflisten | form_responses:read |
GET /v1/form-responses/open-defects |
Offene Mängel aus abgeschickten Formularen auflisten | form_responses:read |
GET /v1/form-responses/compare |
Zwei abgeschickte Formular-Antworten vergleichen | form_responses:read |
GET /v1/form-responses/{id} |
Eine Formular-Antwort mit Antworten und Foto-Links lesen | form_responses:read |
GET /v1/form-templates |
Formular-Vorlagen auflisten | form_templates:read |
POST /v1/form-templates |
Formular-Vorlage anlegen | form_templates:write |
GET /v1/form-templates/{id} |
Eine Formular-Vorlage mit allen Feldern lesen | form_templates:read |
PATCH /v1/form-templates/{id} |
Formular-Vorlage ändern | form_templates:write |
POST /v1/form-templates/{id}/status |
Status einer Vorlage schalten (Entwurf, aktiv, archiviert) | form_templates:write |
POST /v1/form-templates/catalog/import |
Vorlagen aus dem Katalog als Entwurf importieren | form_templates:write |
GET /v1/form-responses
Formular-Antworten auflisten (Filter: status, property_id, template_id, has_defect).
Berechtigung (Scope): form_responses:read
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
page |
Query | integer | nein | Standard: 1; mindestens 1. |
pageSize |
Query | integer | nein | Standard: 50; 1 – 100. |
template_id |
Query | string (uuid) | nein | — |
property_id |
Query | integer | nein | — |
status |
Query | string | nein | Werte: draft, submitted. |
has_defect |
Query | boolean | nein | — |
Beispielaufruf
curl "https://api.litelog.de/api/v1/form-responses?property_id=124&status=submitted&pageSize=10" \
-H "X-Api-Key: $KEY"
Beispielantwort (200)
{
"data": [
{
"id": "48d1f6a3-0e7b-4c29-9a5d-b2c8e4f71a06",
"template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"property_id": 124,
"status": "submitted",
"has_defect": false,
"submitted_at": "2026-12-02T10:15:00.000Z",
"created_at": "2026-12-02T10:15:02.731Z"
},
{
"id": "b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50",
"template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"property_id": 124,
"status": "submitted",
"has_defect": true,
"submitted_at": "2026-12-01T10:42:00.000Z",
"created_at": "2026-12-01T10:42:03.412Z"
}
],
"total": 2,
"page": 1,
"pageSize": 10
}
GET /v1/form-responses/open-defects
Offene Mängel aus abgeschickten Formularen, neueste zuerst (within_days, Standard 90; property_id, template_id) — Feldtext, Wert, Vorlage und Objekt, ohne Feld-Kennung und Fotos.
Berechtigung (Scope): form_responses:read
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
page |
Query | integer | nein | Standard: 1; mindestens 1. |
pageSize |
Query | integer | nein | Standard: 50; 1 – 100. |
property_id |
Query | integer | nein | — |
within_days |
Query | integer | nein | Standard: 90; 1 – 365. |
template_id |
Query | string (uuid) | nein | — |
Beispielaufruf
curl "https://api.litelog.de/api/v1/form-responses/open-defects?within_days=30&pageSize=50" \
-H "X-Api-Key: $KEY"
Beispielantwort (200)
{
"data": [
{
"source_response_id": "9d3b6f20-4a1e-4c7d-8b52-e0f1a3c5d7b9",
"template_id": "c1a5e8f2-3b7d-4069-a4e2-6f9b0d1c8e35",
"template_name": "Housekeeping-Abnahme",
"property_id": 123,
"captured_at": "2026-12-02T16:05:00.000Z",
"label": "Boden im Eingangsbereich",
"value": "defect",
"signal_type": "defect"
},
{
"source_response_id": "b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50",
"template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"template_name": "Endreinigung Checkliste",
"property_id": 124,
"captured_at": "2026-12-01T10:42:00.000Z",
"label": "Bad gereinigt",
"value": "defect",
"signal_type": "defect"
}
],
"total": 2,
"page": 1,
"pageSize": 50
}
GET /v1/form-responses/compare
Zwei abgeschickte Antworten vergleichen (a, b; die ältere ist immer links): je Feld beide Werte mit Urteil (new, preexisting, fixed, changed, unchanged, not_rated) — ohne Fotos, Unterschriften und Standortdaten.
Berechtigung (Scope): form_responses:read
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
a |
Query | string (uuid) | ja | — |
b |
Query | string (uuid) | ja | — |
Beispielaufruf
curl "https://api.litelog.de/api/v1/form-responses/compare?a=0a4e7c15-9b2d-4c63-a8f1-3d5b7e902c18&b=e6f2b8d4-1c3a-4975-b0e9-8a7d5c4f2b61" \
-H "X-Api-Key: $KEY"
Beispielantwort (200)
{
"data": {
"left": {
"id": "0a4e7c15-9b2d-4c63-a8f1-3d5b7e902c18",
"template_id": "2f1d4c8a-6b3e-4f7a-9c21-5d8e0a7b3c46",
"template_name": "Übergabeprotokoll Wohnung",
"template_version": 1,
"property_id": 124,
"property_name": "Haus Seeblick — Wohnung 3",
"submitted_at": "2026-12-01T15:00:00.000Z",
"has_defect": true,
"account_name": "Max Mustermann"
},
"right": {
"id": "e6f2b8d4-1c3a-4975-b0e9-8a7d5c4f2b61",
"template_id": "2f1d4c8a-6b3e-4f7a-9c21-5d8e0a7b3c46",
"template_name": "Übergabeprotokoll Wohnung",
"template_version": 1,
"property_id": 124,
"property_name": "Haus Seeblick — Wohnung 3",
"submitted_at": "2026-12-15T10:30:00.000Z",
"has_defect": true,
"account_name": "Max Mustermann"
},
"same_template": true,
"differences": [
{
"field_id": "f_boden",
"label": "Boden Wohnzimmer",
"type": "ok_defect",
"left": {
"value": "ok",
"note": null
},
"right": {
"value": "defect",
"note": "Kratzer im Parkett vor dem Fenster"
},
"verdict": "new",
"delta": null
},
{
"field_id": "f_fenster",
"label": "Fenster und Rahmen",
"type": "ok_defect",
"left": {
"value": "defect",
"note": "Fenstergriff locker"
},
"right": {
"value": "ok",
"note": null
},
"verdict": "fixed",
"delta": null
},
{
"field_id": "f_zaehler_strom",
"label": "Zählerstand Strom (kWh)",
"type": "number",
"left": {
"value": 15230,
"note": null
},
"right": {
"value": 15418,
"note": null
},
"verdict": "changed",
"delta": 188
}
],
"unmatched": [],
"summary": {
"new": 1,
"preexisting": 0,
"fixed": 1,
"unchanged": 1,
"changed": 1,
"notRated": 0
}
}
}
Auszug: Die Antwort trägt weitere Felder. Alle Felder stehen in der OpenAPI-Datei.
GET /v1/form-responses/{id}
Antwort im Detail, inklusive zeitlich begrenzter Foto-Links.
Berechtigung (Scope): form_responses:read
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
id |
Pfad | string (uuid) | ja | — |
Beispielaufruf
curl "https://api.litelog.de/api/v1/form-responses/b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50" \
-H "X-Api-Key: $KEY"
Beispielantwort (200)
{
"data": {
"id": "b3d9a1c2-5e7f-4a86-8d04-1f6c2e9a7b50",
"client_uuid": "91c7e3a5-4f2b-4d06-b8a9-0c5e7d3f1b62",
"template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"template_version": 1,
"schema_snapshot": [
{
"id": "f_kueche",
"type": "ok_defect",
"label": {
"de": "Küche gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
}
],
"user_id": 284,
"account_id": 41,
"property_id": 124,
"tag_id": 311,
"data": {
"f_kueche": "ok",
"f_bad": "defect",
"f_bad::note": "Silikonfuge an der Dusche ist verschimmelt.",
"f_bad::photo": [
"pending/41-8e2f4a6c-1b3d-4e5f-9a7b-0c2d4e6f8a1b.jpg"
],
"f_bemerkung": "Handtücher und Bettwäsche gewechselt."
},
"has_defect": true,
"status": "submitted",
"submitted_at": "2026-12-01T10:42:00.000Z",
"review_status": null,
"received_at": "2026-12-01T10:42:03.412Z",
"client_created_at": "2026-12-01T10:41:52.000Z",
"bridge_outcome": "completed",
"device_time_status": null,
"created_at": "2026-12-01T10:42:03.412Z",
"updated_at": "2026-12-01T10:42:03.412Z",
"media": {
"photos": [
"https://files.example.com/pending/41-8e2f4a6c-1b3d-4e5f-9a7b-0c2d4e6f8a1b.jpg?X-Amz-Expires=900&X-Amz-Signature=…"
],
"photo_keys": [
"pending/41-8e2f4a6c-1b3d-4e5f-9a7b-0c2d4e6f8a1b.jpg"
],
"photo_sources": [
"camera"
],
"videos": [],
"signatures": [],
"signature_fields": []
},
"account_name": "Erika Musterfrau",
"property_name": "Haus Seeblick — Wohnung 3",
"template_name": "Endreinigung Checkliste",
"linked_task": null,
"checkpoint_name": "Wohnung 3 – Eingang",
"signature": {
"status": "signed",
"signer_name": "Erika Musterfrau",
"signer_username": "erika.musterfrau",
"signer_role": "Reinigungskraft",
"meaning": "submission",
"signed_at": "2026-12-01T10:41:58.000Z",
"received_at": "2026-12-01T10:42:03.412Z",
"method": "pin",
"hash": "9f2c4e6a8b0d1f3a5c7e9b1d3f5a7c9e0b2d4f6a8c0e1a3b5d7f9c1e3a5b7d9f",
"hash_version": 2,
"failure_reason": null
},
"task_completions": [
{
"completion_id": "c4e9a2f7-3b61-4d8c-a5f0-7e2b9c1d6a48",
"task_uuid": "6e0b3d5f-9a17-4c82-b4d6-1f8a2c7e5d93",
"task_title": "Endreinigung Wohnung 3",
"occurrence_date": "2026-12-01",
"completed_at": "2026-12-01T10:42:00.000Z",
"completed_without_scan": false,
"cancelled": false
}
],
"proof_invalid": false,
"proof_reason": null,
"completion_missing": null
}
}
Auszug: Die Antwort trägt weitere Felder. Alle Felder stehen in der OpenAPI-Datei.
GET /v1/form-templates
Formular-Vorlagen auflisten.
Formular-Vorlagen auflisten bzw. anlegen (gleicher Aufbau wie der Vorlagen-Editor); status draft (Standard) oder active — Aktivieren zählt gegen das Kontingent. template_kind checklist kennzeichnet eine Checklisten-Vorlage: ein Schnappschuss von Punkten, den das Portal in eine Aufgabe laden kann; an eine Aufgabe gebunden wird sie nicht.
Berechtigung (Scope): form_templates:read
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
page |
Query | integer | nein | Standard: 1; mindestens 1. |
pageSize |
Query | integer | nein | Standard: 50; 1 – 100. |
status |
Query | string | nein | Werte: draft, active, archived. |
Beispielaufruf
curl "https://api.litelog.de/api/v1/form-templates?status=active&page=1&pageSize=2" \
-H "X-Api-Key: $KEY"
Beispielantwort (200)
{
"data": [
{
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Endreinigung Checkliste",
"description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
"status": "active",
"is_published": true,
"is_default": false,
"template_kind": "user",
"scope": "property",
"assignment": {
"property_ids": [
124
]
},
"default_category_id": null,
"category_field_id": null,
"reaction_rule_id": null,
"default_priority": "medium",
"icon": null,
"accent_color": null,
"requires_signature": false,
"requires_review": false,
"esignature_mode": null,
"scoring_enabled": false,
"pass_threshold": null,
"version": 1,
"updated_at": "2026-12-01T07:50:12.306Z",
"field_count": 3,
"field_types": [
"long_text",
"ok_defect"
],
"task_count": 1
},
{
"id": "c1a5e8f2-3b7d-4069-a4e2-6f9b0d1c8e35",
"name": "Housekeeping-Abnahme",
"description": "Abnahme der Reinigung und Freigabe der Wohnung vor jeder Übergabe.",
"status": "active",
"is_published": true,
"is_default": false,
"template_kind": "user",
"scope": "standalone",
"assignment": null,
"default_category_id": null,
"category_field_id": null,
"reaction_rule_id": null,
"default_priority": null,
"icon": null,
"accent_color": null,
"requires_signature": true,
"requires_review": false,
"esignature_mode": null,
"scoring_enabled": false,
"pass_threshold": null,
"version": 1,
"updated_at": "2026-12-01T07:20:44.915Z",
"field_count": 49,
"field_types": [
"long_text",
"ok_defect",
"photo",
"section_header",
"signature"
],
"task_count": 0
}
],
"total": 3,
"page": 1,
"pageSize": 2
}
POST /v1/form-templates
Formular-Vorlage anlegen.
Formular-Vorlagen auflisten bzw. anlegen (gleicher Aufbau wie der Vorlagen-Editor); status draft (Standard) oder active — Aktivieren zählt gegen das Kontingent. template_kind checklist kennzeichnet eine Checklisten-Vorlage: ein Schnappschuss von Punkten, den das Portal in eine Aufgabe laden kann; an eine Aufgabe gebunden wird sie nicht.
Berechtigung (Scope): form_templates:write
Felder im Rumpf (JSON)
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
name |
string | ja | Höchstens 200 Zeichen. |
template_kind |
string | nein | Nach dem Anlegen nicht änderbar. Werte: user, checklist. |
description |
string oder null | nein | — |
schema |
array (object) | ja | — |
scope |
string | nein | Weggelassen bei nicht leerem assignment.property_ids: Die Vorlage wird mit dem Geltungsbereich property gespeichert. standalone oder route zusammen mit property_ids wird mit 400 invalid_schema abgelehnt (die Ids hätten keine Wirkung); tag darf property_ids tragen (sie beschränken den Scan auf diese Objekte). Werte: standalone, property, tag, route. |
assignment |
object oder null | nein | { property_ids?, route_ids?, tag_types?, worktime_events? }. property_ids ohne scope setzt den Geltungsbereich auf property; scope: standalone oder route zusammen mit property_ids antwortet 400 invalid_schema. Jede Id muss zur Firma gehören (sonst 400 invalid_schema). |
status |
string | nein | Status beim Anlegen; Standard draft. active zählt gegen das Kontingent der Formular-Vorlagen (403, wenn es erschöpft ist). Werte: draft, active. |
Beispielaufruf
curl -X POST "https://api.litelog.de/api/v1/form-templates" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"name": "Endreinigung Checkliste",
"description": "Checkliste für die Endreinigung einer Ferienwohnung nach Abreise.",
"schema": [
{
"id": "f_kueche",
"type": "ok_defect",
"label": {
"de": "Küche gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
}
},
{
"id": "f_bad",
"type": "ok_defect",
"label": {
"de": "Bad gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
}
},
{
"id": "f_bemerkung",
"type": "long_text",
"label": {
"de": "Bemerkung"
}
}
],
"assignment": {
"property_ids": [
124
]
}
}'
Beispielantwort (201)
{
"data": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Endreinigung Checkliste",
"description": "Checkliste für die Endreinigung einer Ferienwohnung nach Abreise.",
"schema": [
{
"id": "f_kueche",
"type": "ok_defect",
"label": {
"de": "Küche gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bad",
"type": "ok_defect",
"label": {
"de": "Bad gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bemerkung",
"type": "long_text",
"label": {
"de": "Bemerkung"
}
}
],
"scope": "property",
"assignment": {
"property_ids": [
124
]
},
"icon": null,
"accent_color": null,
"default_priority": null,
"template_kind": "user",
"version": 1,
"status": "draft",
"is_published": false,
"is_default": false,
"requires_signature": false,
"esignature_mode": null,
"requires_review": false,
"scoring_enabled": false,
"pass_threshold": null,
"created_at": "2026-12-01T07:30:04.118Z",
"updated_at": "2026-12-01T07:30:04.118Z"
}
}
Auszug: Die Antwort trägt weitere Felder. Alle Felder stehen in der OpenAPI-Datei.
GET /v1/form-templates/{id}
Liefert die Vorlage mit jedem Feld, seinem Typ und seinen Optionen.
Berechtigung (Scope): form_templates:read
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
id |
Pfad | string (uuid) | ja | — |
Beispielaufruf
curl "https://api.litelog.de/api/v1/form-templates/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-H "X-Api-Key: $KEY"
Beispielantwort (200)
{
"data": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"form_template_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Endreinigung Checkliste",
"description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
"status": "active",
"template_kind": "user",
"is_system": false,
"scope": "property",
"property_ids": [
124
],
"property_names": [
"Haus Seeblick — Wohnung 3"
],
"requires_signature": false,
"requires_review": false,
"esignature_mode": null,
"scoring_enabled": false,
"pass_threshold": null,
"default_priority": "medium",
"icon": null,
"accent_color": null,
"version": 1,
"field_count": 3,
"fields": [
{
"id": "f_kueche",
"type": "ok_defect",
"label": {
"de": "Küche gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bad",
"type": "ok_defect",
"label": {
"de": "Bad gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bemerkung",
"type": "long_text",
"label": {
"de": "Bemerkung"
}
}
],
"updated_at": "2026-12-01T07:50:12.306Z"
}
}
PATCH /v1/form-templates/{id}
Formular-Vorlage ändern.
Vorlage ändern bzw. zwischen Entwurf/Aktiv/Archiviert schalten.
Berechtigung (Scope): form_templates:write
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
id |
Pfad | string (uuid) | ja | — |
Felder im Rumpf (JSON)
Den Aufbau des Rumpfs zeigt das Beispiel.
Beispielaufruf
curl -X PATCH "https://api.litelog.de/api/v1/form-templates/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
"default_priority": "medium"
}'
Beispielantwort (200)
{
"data": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Endreinigung Checkliste",
"description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
"schema": [
{
"id": "f_kueche",
"type": "ok_defect",
"label": {
"de": "Küche gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bad",
"type": "ok_defect",
"label": {
"de": "Bad gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bemerkung",
"type": "long_text",
"label": {
"de": "Bemerkung"
}
}
],
"scope": "property",
"assignment": {
"property_ids": [
124
]
},
"icon": null,
"accent_color": null,
"default_priority": "medium",
"template_kind": "user",
"version": 1,
"status": "draft",
"is_published": false,
"is_default": false,
"requires_signature": false,
"esignature_mode": null,
"requires_review": false,
"scoring_enabled": false,
"pass_threshold": null,
"created_at": "2026-12-01T07:30:04.118Z",
"updated_at": "2026-12-01T07:45:31.870Z"
}
}
Auszug: Die Antwort trägt weitere Felder. Alle Felder stehen in der OpenAPI-Datei.
POST /v1/form-templates/{id}/status
Status einer Vorlage schalten (Entwurf, aktiv, archiviert).
Vorlage ändern bzw. zwischen Entwurf/Aktiv/Archiviert schalten.
Berechtigung (Scope): form_templates:write
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
id |
Pfad | string (uuid) | ja | — |
Felder im Rumpf (JSON)
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
status |
string | ja | Werte: draft, active, archived. |
Beispielaufruf
curl -X POST "https://api.litelog.de/api/v1/form-templates/7c9e6679-7425-40de-944b-e07fc1f90ae7/status" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"status": "active"
}'
Beispielantwort (200)
{
"data": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Endreinigung Checkliste",
"description": "Checkliste für die Endreinigung nach Abreise, inklusive Wäschewechsel.",
"schema": [
{
"id": "f_kueche",
"type": "ok_defect",
"label": {
"de": "Küche gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bad",
"type": "ok_defect",
"label": {
"de": "Bad gereinigt"
},
"required": true,
"requireOnDefect": {
"note": true
},
"allowNa": false
},
{
"id": "f_bemerkung",
"type": "long_text",
"label": {
"de": "Bemerkung"
}
}
],
"scope": "property",
"assignment": {
"property_ids": [
124
]
},
"icon": null,
"accent_color": null,
"default_priority": "medium",
"template_kind": "user",
"version": 1,
"status": "active",
"is_published": true,
"is_default": false,
"requires_signature": false,
"esignature_mode": null,
"requires_review": false,
"scoring_enabled": false,
"pass_threshold": null,
"created_at": "2026-12-01T07:30:04.118Z",
"updated_at": "2026-12-01T07:50:12.306Z"
}
}
Auszug: Die Antwort trägt weitere Felder. Alle Felder stehen in der OpenAPI-Datei.
POST /v1/form-templates/catalog/import
Katalog-Vorlagen als Entwurf importieren (z. B. die Ferienwohnungs-Gruppe).
Berechtigung (Scope): form_templates:write
Parameter
| Name | Ort | Typ | Pflicht | Beschreibung |
|---|---|---|---|---|
X-Change-Reason |
Header | string | nein | Grund der Änderung, URI-kodiert, mit vorangestelltem Grund-Code: [correction], [new_requirement], [customer_request], [error_fix], [periodic_review] oder [other], z. B. %5Bcorrection%5D%20Tippfehler%20im%20Namen. Pflicht, wenn die Firma „Änderungsgrund erforderlich“ eingeschaltet hat oder die Änderung einen Antrag braucht; steht im Änderungsverlauf der Einstellungen. Höchstens 2000 Zeichen. |
Felder im Rumpf (JSON)
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
keys |
array (string) | ja | — |
change_reason |
string | nein | Optional. Importieren braucht keinen Grund; ein mitgegebener Grund steht in den Anlage-Zeilen (alternativ Header X-Change-Reason). Höchstens 2000 Zeichen. |
Beispielaufruf
curl -X POST "https://api.litelog.de/api/v1/form-templates/catalog/import" \
-H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
-d '{
"keys": [
"Reinigungscheckliste",
"Housekeeping-Abnahme",
"Übergabeprotokoll Einzug"
]
}'
Beispielantwort (200)
{
"data": {
"created": [
"Reinigungscheckliste",
"Übergabeprotokoll Einzug"
],
"skipped": [
"Housekeeping-Abnahme"
]
}
}
