{"openapi":"3.1.0","info":{"title":"AccuZegel application API","version":"0.1.0","description":"How to use the API: create an API key as administrator of your organisation ([API keys](/docs/sleutels)), click **Authorize**, paste the key under **apiKey** (the **session** entry is the browser session of a signed-in person and needs no input) and try an endpoint with **Try it out**; the call goes to the application for real and only ever touches the data of your own organisation. Zo gebruikt u de API: maak een API-sleutel aan als beheerder van uw organisatie, klik **Authorize**, plak de sleutel en probeer een endpoint met **Try it out**. Document: [openapi.json](/openapi.json); application: [app.accuzegel.nl](/).\n\nBattery passport data of an organisation (Regulation (EU) 2023/1542, Article 77 and Annex XIII). Every request acts for exactly one organisation, taken from the verified principal, never from the request. An object of another organisation answers 404 (azl-20011), the same as an object that does not exist. Values above the caller's clearance are absent from answers, not null. Identifier keys in paths are percent-encoded. Passport reads have a typed schema generated from the catalogue and a JSON-LD representation (Accept: application/ld+json) with the context at /v1/contexts/battery-passport.jsonld. Presented but invalid credentials answer 401, also on public routes."},"servers":[{"url":"https://app.accuzegel.nl"}],"tags":[{"name":"identifiers","description":"Identifier registration and QR export (UC-03)"},{"name":"Organisations"},{"name":"Users and roles"},{"name":"Identifiers"},{"name":"Battery models"},{"name":"Batteries"},{"name":"Passports"},{"name":"Audit"},{"name":"Platform"},{"name":"Internal properties"},{"name":"Canonical value rows"},{"name":"Internal objects"},{"name":"Canonical field policies"},{"name":"Tenant profiles"},{"name":"Bulk entry"}],"paths":{"/registraties":{"post":{"operationId":"registerWaitingList","security":[],"summary":"Register a company for the waiting list (HTML form, double opt-in by e-mail)","requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["company_name","contact_name","email","role","volume","consent"],"properties":{"company_name":{"type":"string","maxLength":200},"kvk_number":{"type":"string","pattern":"^[0-9]{8}$","description":"When a KvK key is configured the company is looked up and shown for confirmation (kvk_confirm, kvk_profile, kvk_checked_at, kvk_sig) before it is stored (decision 38)"},"website":{"type":"string","format":"uri"},"contact_name":{"type":"string","maxLength":200},"email":{"type":"string","format":"email"},"phone":{"type":"string","maxLength":40},"role":{"type":"string","enum":["fabrikant","importeur","distributeur","anders"]},"categories":{"type":"array","items":{"type":"string","enum":["lmt","ev","industrieel","anders"]}},"volume":{"type":"string","enum":["<100","100-1000","1000-10000",">10000","onbekend"]},"wants_prices":{"type":"string","enum":["on"]},"remarks":{"type":"string","maxLength":2000},"consent":{"type":"string","enum":["on"]}}}}}},"responses":{"303":{"description":"Registered; confirmation e-mail sent; redirect to /bedankt"},"400":{"description":"Validation errors (HTML form with messages)"},"429":{"description":"Too many registrations from this address"}}}},"/bevestigen":{"get":{"operationId":"confirmRegistration","security":[],"summary":"Confirm a registration (double opt-in)","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Confirmed (HTML)"},"404":{"description":"Unknown or used token"}}}},"/admin/registraties":{"get":{"operationId":"listRegistrations","summary":"List registrations (AccuZegel administrator: session with platform_admin at aal2, decision 29)","security":[{"session":[]}],"parameters":[{"name":"format","in":"query","schema":{"type":"string","enum":["json","csv"]}}],"responses":{"200":{"description":"Registrations"},"401":{"description":"Not signed in"},"403":{"description":"Not a platform administrator or no second factor"}}}},"/healthz":{"get":{"operationId":"getHealth","security":[],"summary":"Health, including the database","responses":{"200":{"description":"ok"},"503":{"description":"database unavailable"}}}},"/openapi.json":{"get":{"operationId":"getOpenApi","security":[],"summary":"This OpenAPI 3.1 document","responses":{"200":{"description":"The document"}}}},"/docs":{"get":{"operationId":"getDocs","security":[],"summary":"Human-readable API documentation (HTML)","responses":{"200":{"description":"HTML page"}}}},"/v1/identifiers":{"get":{"operationId":"listIdentifiers","summary":"List the identifiers of the caller's tenant","tags":["identifiers"],"security":[{"apiKey":[]},{"session":[]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"after","in":"query","schema":{"type":"string"}},{"name":"prefix","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Identifiers, paged by key; next is the key to pass as after, or null","content":{"application/json":{"schema":{"type":"object"},"example":{"identifiers":[{"key":"01/09506000134352/21/SN-000123","url":"https://dppdir.com/01/09506000134352/21/SN-000123","issued_host":"dppdir.com","scheme":"EN 18219:2026 ID scheme 1, web-enabled structured path (5.2.2.1): GS1 Digital Link, ISO/IEC 15459-4, issuing agency GS1","level":"item","published":false,"passport_status":null,"passport_url":{"nl":"https://app.accuzegel.nl/p/01%2F09506000134352%2F21%2FSN-000123"},"created_at":"2026-11-02T09:30:00Z"}],"next":null}}}}}},"post":{"operationId":"registerIdentifiers","summary":"Register identifiers of a battery model and its items (UC-03)","tags":["identifiers"],"security":[{"apiKey":[]},{"session":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model"],"properties":{"model":{"type":"object","description":"{scheme: \"gs1\", gtin, cpv?} or {scheme: \"di\", product}"},"items":{"type":"array","maxItems":1000,"items":{"type":"object","required":["serial"],"properties":{"serial":{"type":"string"},"lot":{"type":"string"}}}},"include_model":{"type":"boolean","default":true}}},"example":{"model":{"scheme":"gs1","gtin":"09506000134352"},"items":[{"serial":"SN-000123"}]}}}},"responses":{"201":{"description":"Issued identifiers with the URL for the QR code and the EN 18219:2026 ID scheme","content":{"application/json":{"schema":{"type":"object"},"example":{"identifiers":[{"key":"01/09506000134352/21/SN-000123","url":"https://dppdir.com/01/09506000134352/21/SN-000123","issued_host":"dppdir.com","scheme":"EN 18219:2026 ID scheme 1, web-enabled structured path (5.2.2.1): GS1 Digital Link, ISO/IEC 15459-4, issuing agency GS1","level":"item","published":false,"passport_status":null,"passport_url":{"nl":"https://app.accuzegel.nl/p/01%2F09506000134352%2F21%2FSN-000123"},"created_at":"2026-11-02T09:30:00Z"}]}}}},"409":{"description":"An identifier was issued before; nothing is stored"},"422":{"description":"Invalid GTIN, product or value"}}}},"/v1/identifiers/export.csv":{"get":{"operationId":"exportIdentifiersCsv","security":[{"apiKey":[]},{"session":[]}],"summary":"CSV of key, URL, scheme and state per identifier","tags":["identifiers"],"responses":{"200":{"description":"text/csv"}}}},"/v1/identifiers/{key}":{"get":{"operationId":"getIdentifier","summary":"One identifier of the caller's tenant (key percent-encoded)","tags":["identifiers"],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Identifier","content":{"application/json":{"schema":{"type":"object"},"example":{"key":"01/09506000134352/21/SN-000123","url":"https://dppdir.com/01/09506000134352/21/SN-000123","issued_host":"dppdir.com","scheme":"EN 18219:2026 ID scheme 1, web-enabled structured path (5.2.2.1): GS1 Digital Link, ISO/IEC 15459-4, issuing agency GS1","level":"item","published":false,"passport_status":null,"passport_url":{"nl":"https://app.accuzegel.nl/p/01%2F09506000134352%2F21%2FSN-000123"},"created_at":"2026-11-02T09:30:00Z"}}}},"404":{"description":"Unknown, or of another tenant"}}},"patch":{"operationId":"updateIdentifier","summary":"Change passport URLs, note or the battery of an identifier","tags":["Identifiers"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"identifier:write","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"passport":{"type":"object","description":"Passport URL per language (https); nl is required (001_identifier.sql)","required":["nl"],"additionalProperties":{"type":"string","pattern":"^https://[^\\s]+$","maxLength":500},"example":{"nl":"https://app.accuzegel.nl/p/…"}},"battery":{"type":"string","minLength":1,"maxLength":100,"description":"The organisation's own key: model identifier of a battery model, serial number of a battery"},"note":{"type":"string","minLength":1,"maxLength":500}}},"example":{"note":"Printed on label batch 12"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/identifiers/{key}/qr.svg":{"get":{"operationId":"getIdentifierQrSvg","security":[{"apiKey":[]},{"session":[]}],"summary":"QR Code (ISO/IEC 18004) as SVG with 4-module quiet zone and the key as text below (EN 18220:2026, 5.7.2); query: ec, x (mm, at least 0.25), dpi, dark, light, hri=0 to omit the text","tags":["identifiers"],"responses":{"200":{"description":"image/svg+xml"},"422":{"description":"Export refused: contrast, X dimension or resolution"}}}},"/v1/identifiers/{key}/qr.png":{"get":{"operationId":"getIdentifierQrPng","security":[{"apiKey":[]},{"session":[]}],"summary":"QR Code as PNG at the stated resolution with the key as text below; query: ec, x (mm, at least 0.25), dpi, dark, light, hri=0","tags":["identifiers"],"responses":{"200":{"description":"image/png"},"422":{"description":"Export refused"}}}},"/v1/identifiers/{key}/label":{"get":{"operationId":"getIdentifierLabelSpec","security":[{"apiKey":[]},{"session":[]}],"summary":"Label specification: modules, X dimension, quiet zone, size, minimum dpi","tags":["identifiers"],"responses":{"200":{"description":"JSON"}}}},"/v1/organisations/{id}":{"get":{"operationId":"getOrganisation","summary":"Read the organisation (tenant); another organisation answers 404","tags":["Organisations"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateOrganisation","summary":"Rename the organisation","tags":["Organisations"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200}}},"example":{"name":"Voorbeeld Batterijen B.V."}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/organisations/{id}/kvk":{"post":{"operationId":"recordOrganisationKvk","summary":"Set the KvK number of the organisation; when the KvK lookup is on, retrieve and store the company profile (also the re-check by the administrator, decision 38)","tags":["Organisations"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kvkNumber"],"properties":{"kvkNumber":{"type":"string","minLength":1,"maxLength":8,"pattern":"^[0-9]{8}$","description":"Eight digits"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/kvk/{kvkNumber}":{"get":{"operationId":"lookupKvk","summary":"Look up a company in the Handelsregister to prefill step 1 Organisatie (nothing is stored; rate limited per address and per session)","tags":["Organisations"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":1,"x-tenant-scoped":false,"x-human-only":true,"parameters":[{"name":"kvkNumber","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/roles":{"get":{"operationId":"listRoles","summary":"Roles an organisation can assign (LOV role)","tags":["Users and roles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":false,"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/members":{"get":{"operationId":"listMembers","summary":"Users of the organisation with their roles","tags":["Users and roles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":1,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/members/{userId}":{"get":{"operationId":"getMember","summary":"One user of the organisation","tags":["Users and roles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":1,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateMember","summary":"Change the roles of a user; the last administrator cannot lose the role","tags":["Users and roles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["roles"],"properties":{"roles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}}}},"example":{"roles":["operator_editor"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"removeMember","summary":"Remove a user from the organisation","tags":["Users and roles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done"},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/identifier-import-rows":{"post":{"operationId":"importIdentifierRow","summary":"Atomically create or reconcile one battery and identifier; never publishes","tags":["Identifiers"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","serial","scheme"],"properties":{"model":{"type":"string","minLength":1,"maxLength":100,"description":"The organisation's own key: model identifier of a battery model, serial number of a battery"},"serial":{"type":"string","minLength":1,"maxLength":20},"scheme":{"type":"string","enum":["gs1","di"]},"gtin":{"type":"string","minLength":1,"maxLength":14},"product":{"type":"string","minLength":1,"maxLength":50}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/identifier-import-check":{"post":{"operationId":"previewIdentifierImport","summary":"Validate bounded import syntax and active selected model without creating rows","tags":["Identifiers"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","scheme","serials"],"properties":{"model":{"type":"string","minLength":1,"maxLength":100,"description":"The organisation's own key: model identifier of a battery model, serial number of a battery"},"scheme":{"type":"string","enum":["gs1","di"]},"gtin":{"type":"string","minLength":1,"maxLength":14},"product":{"type":"string","minLength":1,"maxLength":50},"serials":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"string","minLength":1,"maxLength":100}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models":{"get":{"operationId":"listBatteryModels","summary":"List the battery models of the organisation","tags":["Battery models"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"after","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","description":"Literal case-sensitive prefix of the record key; combined with the cursor on the server.","schema":{"type":"string","maxLength":200}},{"name":"sort","in":"query","schema":{"type":"string","enum":["key","updated"],"default":"key"}},{"name":"direction","in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"items":[{"class":"battery_model","key":"MODEL-A-48V","revision":1,"created_at":"2026-11-02T09:30:00Z","updated_at":"2026-11-02T09:30:00Z"}]}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createBatteryModel","summary":"Create a battery model","tags":["Battery models"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key"],"properties":{"key":{"type":"string","minLength":1,"maxLength":100,"description":"The organisation's own key: model identifier of a battery model, serial number of a battery","pattern":"^[A-Za-z0-9][A-Za-z0-9._ -]{0,99}$"},"placedOnMarket":{"type":"string","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Expected or actual date (YYYY-MM-DD) of placing on the market or putting into service; only used for the Article 77(1) check, not stored"},"data":{"type":"object","description":"Annex XIII data in the shape of the open data model: {data group: {attribute: value | [{value, language}] | null}}; null or an empty list removes a value. Up to 500 entries per property; each entry is a string, finite number, or exact {value, language?} object. Strings have at most 10000 Unicode code points. Language is empty or matches [a-z]{2,3}(-[A-Z]{2})?; metadata restricts multilingual values to text. Unknown wrapper members and nested values are rejected","additionalProperties":{"type":"object","additionalProperties":true},"example":{"general":{"battery-category":"LMT"}}},"source":{"type":"string","minLength":1,"maxLength":500},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}},"example":{"key":"MODEL-A-48V","data":{"general":{"battery-category":"LMT"}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"policyRevisions":{"type":"object","description":"Optional on schema019: original policy revisions for currently readable canonical fields, including empty fields. Select only touched entries for a mutation. Zero means untouched policy; a reset retains its positive revision. This metadata grants no authority.","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647}}}},"example":{"class":"battery_model","key":"MODEL-A-48V","revision":1,"created_at":"2026-11-02T09:30:00Z","updated_at":"2026-11-02T09:30:00Z"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}":{"get":{"operationId":"getBatteryModel","summary":"Read one battery model with the data the caller's clearance allows","tags":["Battery models"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"policyRevisions":{"type":"object","description":"Optional on schema019: original policy revisions for currently readable canonical fields, including empty fields. Select only touched entries for a mutation. Zero means untouched policy; a reset retains its positive revision. This metadata grants no authority.","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647}}}},"example":{"class":"battery_model","key":"MODEL-A-48V","revision":1,"created_at":"2026-11-02T09:30:00Z","updated_at":"2026-11-02T09:30:00Z","data":{"general":{"battery-category":"LMT"}}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateBatteryModel","summary":"Write data values (null removes a value)","tags":["Battery models"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"object","description":"Annex XIII data in the shape of the open data model: {data group: {attribute: value | [{value, language}] | null}}; null or an empty list removes a value. Up to 500 entries per property; each entry is a string, finite number, or exact {value, language?} object. Strings have at most 10000 Unicode code points. Language is empty or matches [a-z]{2,3}(-[A-Z]{2})?; metadata restricts multilingual values to text. Unknown wrapper members and nested values are rejected","additionalProperties":{"type":"object","additionalProperties":true},"example":{"general":{"battery-category":"LMT"}}},"revision":{"type":"integer","minimum":1,"description":"Expected revision; a stale value answers azl-20020"},"source":{"type":"string","minLength":1,"maxLength":500},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}},"example":{"data":{"general":{"battery-category":"LMT"}},"revision":1}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"policyRevisions":{"type":"object","description":"Optional on schema019: original policy revisions for currently readable canonical fields, including empty fields. Select only touched entries for a mutation. Zero means untouched policy; a reset retains its positive revision. This metadata grants no authority.","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647}}}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteBatteryModel","summary":"Delete (soft); can be salvaged","tags":["Battery models"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done"},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}/salvage":{"post":{"operationId":"salvageBatteryModel","summary":"Restore a deleted object","tags":["Battery models"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries":{"get":{"operationId":"listBatteries","summary":"List the batteries of the organisation","tags":["Batteries"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"after","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","description":"Literal case-sensitive prefix of the record key; combined with the cursor on the server.","schema":{"type":"string","maxLength":200}},{"name":"model","in":"query","description":"Exact code of an active battery model in the organisation","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"sort","in":"query","schema":{"type":"string","enum":["key","updated"],"default":"key"}},{"name":"direction","in":"query","schema":{"type":"string","enum":["asc","desc"],"default":"asc"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"},"example":{"items":[{"class":"battery","key":"SN-000123","model":"MODEL-A-48V","revision":1,"created_at":"2026-11-02T09:30:00Z","updated_at":"2026-11-02T09:30:00Z"}]}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createBattery","summary":"Create a battery","tags":["Batteries"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key","model"],"properties":{"key":{"type":"string","minLength":1,"maxLength":100,"description":"The organisation's own key: model identifier of a battery model, serial number of a battery","pattern":"^[A-Za-z0-9][A-Za-z0-9._ -]{0,99}$"},"model":{"type":"string","minLength":1,"maxLength":100,"description":"Key of the battery model of this organisation"},"data":{"type":"object","description":"Annex XIII data in the shape of the open data model: {data group: {attribute: value | [{value, language}] | null}}; null or an empty list removes a value. Up to 500 entries per property; each entry is a string, finite number, or exact {value, language?} object. Strings have at most 10000 Unicode code points. Language is empty or matches [a-z]{2,3}(-[A-Z]{2})?; metadata restricts multilingual values to text. Unknown wrapper members and nested values are rejected","additionalProperties":{"type":"object","additionalProperties":true},"example":{"general":{"battery-category":"LMT"}}},"source":{"type":"string","minLength":1,"maxLength":500},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}},"example":{"key":"SN-000123","model":"MODEL-A-48V","data":{"general":{"battery-category":"LMT"}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"policyRevisions":{"type":"object","description":"Optional on schema019: original policy revisions for currently readable canonical fields, including empty fields. Select only touched entries for a mutation. Zero means untouched policy; a reset retains its positive revision. This metadata grants no authority.","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647}}}},"example":{"class":"battery","key":"SN-000123","model":"MODEL-A-48V","revision":1,"created_at":"2026-11-02T09:30:00Z","updated_at":"2026-11-02T09:30:00Z"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}":{"get":{"operationId":"getBattery","summary":"Read one battery with the data the caller's clearance allows","tags":["Batteries"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"policyRevisions":{"type":"object","description":"Optional on schema019: original policy revisions for currently readable canonical fields, including empty fields. Select only touched entries for a mutation. Zero means untouched policy; a reset retains its positive revision. This metadata grants no authority.","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647}}}},"example":{"class":"battery","key":"SN-000123","model":"MODEL-A-48V","revision":1,"created_at":"2026-11-02T09:30:00Z","updated_at":"2026-11-02T09:30:00Z","data":{"general":{"battery-category":"LMT"}}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateBattery","summary":"Write data values (null removes a value)","tags":["Batteries"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatteryUpdate"},"example":{"data":{"general":{"battery-category":"LMT"}},"revision":1}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"policyRevisions":{"type":"object","description":"Optional on schema019: original policy revisions for currently readable canonical fields, including empty fields. Select only touched entries for a mutation. Zero means untouched policy; a reset retains its positive revision. This metadata grants no authority.","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647}}}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteBattery","summary":"Delete (soft); can be salvaged","tags":["Batteries"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Done"},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/salvage":{"post":{"operationId":"salvageBattery","summary":"Restore a deleted object","tags":["Batteries"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:write","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/identifiers":{"get":{"operationId":"listBatteryIdentifiers","summary":"List identifiers bound to one active battery","tags":["Identifiers"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"identifier:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/publication-check":{"get":{"operationId":"checkPublication","summary":"Mandatory attributes without a value, split into blocking and advisory","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"passport:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/passports":{"get":{"operationId":"listPassports","summary":"Published passports of the organisation","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"passport:read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"after","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","description":"Literal case-sensitive prefix of the record key; combined with the cursor on the server.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/passports/{identifier}":{"get":{"operationId":"getPassport","summary":"Published passport (latest or ?version=) with the layers the caller's clearance allows; public without sign-in (Article 77(3))","tags":["Passports"],"security":[{},{"apiKey":[]},{"session":[]}],"x-roles":[],"x-min-aal":0,"x-tenant-scoped":true,"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"query","schema":{"type":"integer","minimum":1}},{"name":"download","in":"query","description":"Use download=1 together with an explicit version to download the exact JSON representation as an attachment.","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"OK. JSON by default; JSON-LD 1.1 with Accept: application/ld+json (context /v1/contexts/battery-passport.jsonld). Vary: Accept. With download=1 and an explicit version, JSON is returned as a no-store attachment.","headers":{"Vary":{"schema":{"type":"string","const":"Accept"}},"Content-Disposition":{"schema":{"type":"string"},"description":"Present when download=1."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Passport"}},"application/ld+json":{"schema":{"$ref":"#/components/schemas/PassportJsonLd"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Credentials were presented (Authorization or x-api-key) but are invalid (azl-20001); without credentials the public answer is given","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/publish":{"post":{"operationId":"publishPassport","summary":"Publish the passport: publication check, four-eyes rule, new immutable version","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string","minLength":1,"maxLength":200,"pattern":"^(01/[0-9]{14}(/22/[^/]{1,20})?(/10/[^/]{1,20})?(/21/[^/]{1,20})?|25P/[A-Z0-9]{2}[A-Za-z0-9.-]{1,48}(/S/[^/]{1,20})?)$"},"corrects_version":{"type":"integer","minimum":1,"description":"Version this publication corrects (needs reason)"},"reason":{"type":"string","minLength":1,"maxLength":2000},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}},"example":{"identifier":"01/09506000134352/21/SN-000123"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Mandatory data is missing (azl-20016)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/timeline":{"get":{"operationId":"batteryTimeline","summary":"Who did what, when: the audit events about one battery, its identifiers and passports (newest first)","tags":["Audit"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"passport:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"before","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}/timeline":{"get":{"operationId":"modelTimeline","summary":"Who did what, when: the audit events about one battery model (newest first)","tags":["Audit"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"before","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/steps":{"post":{"operationId":"recordStep","summary":"Record a step of the guided workflow in the audit trail: a transition, a run of the completeness check (with the Annex XIII points), an export of the audit trail","tags":["Audit"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["event"],"properties":{"event":{"type":"string","enum":["transition","checked","exported"]},"from":{"type":"integer","minimum":1,"maximum":5},"to":{"type":"integer","minimum":1,"maximum":5},"object":{"type":"string","minLength":1,"maxLength":100},"class":{"type":"string","enum":["battery","battery_model"]},"points":{"type":"array","maxItems":4,"items":{"type":"integer","minimum":1,"maximum":4}}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/progress/models":{"get":{"operationId":"getProgressModels","summary":"Cursor-paged model progress with explicit coverage","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"passport:read","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"after","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","description":"Literal case-sensitive prefix of the record key; combined with the cursor on the server.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["items","coverage"],"properties":{"items":{"type":"array","items":{"type":"object","required":["model","category","registered","complete","published"],"properties":{"model":{"type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"registered":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"complete":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"published":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}}}},"next":{"type":"string"},"coverage":{"type":"string","enum":["complete","partial"]}}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/progress/models/{key}":{"get":{"operationId":"getProgressModel","summary":"Bounded progress for one exact tenant-owned battery model","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"passport:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["model","category","registered","complete","published","coverage"],"properties":{"model":{"type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"registered":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"complete":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"published":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"coverage":{"type":"string","enum":["complete","partial"]}}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/progress/summary":{"get":{"operationId":"getProgressSummary","summary":"Tenant progress summary with explicit coverage","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"passport:read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["coverage","modelCount","categorizedModels","modelsWithBatteries","batteryCount","completeBatteries","publishedBatteries","completeModels","publishedModels"],"properties":{"coverage":{"type":"string","enum":["complete","partial"]},"modelCount":{"type":"integer","minimum":0},"categorizedModels":{"type":"integer","minimum":0},"modelsWithBatteries":{"type":"integer","minimum":0},"batteryCount":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"completeBatteries":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"publishedBatteries":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"completeModels":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"publishedModels":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]}}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/progress":{"get":{"operationId":"getProgress","summary":"Per battery model: batteries registered, complete and published (legacy response)","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"passport:read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/audit":{"get":{"operationId":"listAudit","summary":"The audit trail of the organisation (newest first); filter by object, actor and action","tags":["Audit"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"before","in":"query","schema":{"type":"integer"}},{"name":"object","in":"query","description":"Key of a model, battery or identifier","schema":{"type":"string","maxLength":300}},{"name":"actor","in":"query","description":"Subject of the user or API key","schema":{"type":"string","maxLength":200}},{"name":"action","in":"query","schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/admin/tenants":{"get":{"operationId":"listTenants","summary":"Platform administrator: metadata of every organisation (counts, no passport values)","tags":["Platform"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["platform_admin"],"x-min-aal":2,"x-tenant-scoped":false,"x-human-only":true,"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/internal-properties":{"post":{"operationId":"createInternalProperty","summary":"Create a tenant-owned internal field, excluded from passport publication","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["class","label","type","readRoles","writeRoles"],"properties":{"label":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":500},"readRoles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}},"writeRoles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}},"class":{"type":"string","enum":["battery_model","battery"]},"type":{"type":"string","enum":["text","integer","decimal","lov"]},"unit":{"description":"Exact fixed numeric unit or null; no unit conversion."},"options":{"type":"array","minItems":0,"maxItems":50,"items":{"type":"object","required":["code","label"],"properties":{"code":{"type":"string","minLength":1,"maxLength":32},"label":{"type":"string","minLength":1,"maxLength":100}}}}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"operationId":"listInternalProperties","summary":"List only currently permitted internal definitions for an existing class","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"class","in":"query","required":true,"schema":{"type":"string","enum":["battery_model","battery"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"after","in":"query","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/internal-properties/{id}":{"patch":{"operationId":"reviseInternalProperty","summary":"Create an immutable label, permission or retirement revision","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","label","readRoles","writeRoles","retired"],"properties":{"label":{"type":"string","minLength":1,"maxLength":100},"description":{"type":"string","maxLength":500},"readRoles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}},"writeRoles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"retired":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}/internal-properties":{"get":{"operationId":"getModelInternalProperties","summary":"Read permitted internal values with current definition and target revisions","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}/internal-properties/{id}":{"patch":{"operationId":"saveModelInternalProperty","summary":"Save one permitted internal scalar under both current revisions","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","definitionRevision","value"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"definitionRevision":{"type":"integer","minimum":1,"maximum":2147483647},"value":{"description":"Scalar matching the current field definition, or null to clear. No coercion."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}/internal-properties/{id}/history":{"get":{"operationId":"getModelInternalPropertyHistory","summary":"Read private field history under current read permissions","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"before","in":"query","description":"Exclusive private history cursor returned by the previous page.","schema":{"type":"string","pattern":"^[1-9][0-9]{0,14}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/internal-properties":{"get":{"operationId":"getBatteryInternalProperties","summary":"Read permitted internal values with current definition and target revisions","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/internal-properties/{id}":{"patch":{"operationId":"saveBatteryInternalProperty","summary":"Save one permitted internal scalar under both current revisions","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","definitionRevision","value"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"definitionRevision":{"type":"integer","minimum":1,"maximum":2147483647},"value":{"description":"Scalar matching the current field definition, or null to clear. No coercion."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/internal-properties/{id}/history":{"get":{"operationId":"getBatteryInternalPropertyHistory","summary":"Read private field history under current read permissions","tags":["Internal properties"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"before","in":"query","description":"Exclusive private history cursor returned by the previous page.","schema":{"type":"string","pattern":"^[1-9][0-9]{0,14}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}/workspace":{"get":{"operationId":"getModelWorkspace","summary":"Read one bounded exact dossier with coherent target/model revisions and inline authorised catalogue","tags":["Canonical value rows"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/battery-models/{key}/properties/{property}/rows":{"get":{"operationId":"getModelValueRows","summary":"Read exact own-instance canonical rows without source claims; unsupported existing values stay read-only","tags":["Canonical value rows"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"saveModelValueRows","summary":"Replace one property under current revision using stable row IDs and exact strings; unchanged attribution preserved, manual changes clear attribution","tags":["Canonical value rows"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","rows"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"rows":{"type":"array","maxItems":500,"items":{"type":"object","required":["value"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"value":{"type":"string","maxLength":20000,"description":"Exact text; numeric properties use at most256 ASCII characters in plain decimal notation. Shared validation limits text to10000 Unicode code points."},"language":{"type":"string","pattern":"^(?:[a-z]{2,3}(?:-[A-Z]{2})?)?$"}}}},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/workspace":{"get":{"operationId":"getBatteryWorkspace","summary":"Read one bounded exact dossier with coherent target/model revisions and inline authorised catalogue","tags":["Canonical value rows"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/properties/{property}/rows":{"get":{"operationId":"getBatteryValueRows","summary":"Read exact own-instance canonical rows without source claims; unsupported existing values stay read-only","tags":["Canonical value rows"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"saveBatteryValueRows","summary":"Replace one property under current revision using stable row IDs and exact strings; unchanged attribution preserved, manual changes clear attribution","tags":["Canonical value rows"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","rows"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"rows":{"type":"array","maxItems":500,"items":{"type":"object","required":["value"],"properties":{"id":{"type":"string","pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"},"value":{"type":"string","maxLength":20000,"description":"Exact text; numeric properties use at most256 ASCII characters in plain decimal notation. Shared validation limits text to10000 Unicode code points."},"language":{"type":"string","pattern":"^(?:[a-z]{2,3}(?:-[A-Z]{2})?)?$"}}}},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/object-profiles":{"get":{"operationId":"listInternalObjectProfiles","summary":"List frozen internal draft profiles; no legal applicability or publication claim","tags":["Internal objects"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/objects/{class}":{"get":{"operationId":"listInternalObjects","summary":"List at most50 tenant-owned internal objects using case-sensitive code-prefix search","tags":["Internal objects"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"class","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createInternalObject","summary":"Create one profile-pinned internal draft and return its exact workspace snapshot","tags":["Internal objects"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"class","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key","profile"],"properties":{"key":{"type":"string","minLength":1,"maxLength":100},"profile":{"type":"object","required":["code","version","sha256"],"properties":{"code":{"type":"string","minLength":1,"maxLength":64},"version":{"type":"integer","minimum":1,"maximum":2147483647},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/objects/{class}/{key}/workspace":{"get":{"operationId":"getInternalObjectWorkspace","summary":"Read one exact internal draft with immutable profile and private-free value rows","tags":["Internal objects"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"class","in":"path","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/objects/{class}/{key}/properties/{property}/rows":{"get":{"operationId":"getInternalObjectValueRows","summary":"Read exact profile-bound internal object rows","tags":["Internal objects"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"class","in":"path","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"saveInternalObjectValueRows","summary":"Replace profile-bound exact rows under current human MFA2 authority and target revision","tags":["Internal objects"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"class","in":"path","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","rows"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"rows":{"type":"array","maxItems":500,"items":{"type":"object","required":["value"],"properties":{"id":{"type":"string","pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"},"value":{"type":"string","maxLength":20000},"language":{"type":"string","pattern":"^(?:[a-z]{2,3}(?:-[A-Z]{2})?)?$"}}}},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/canonical-field-policies":{"get":{"operationId":"listCanonicalFieldPolicies","summary":"List tenant policy snapshots in pages of at most50 with literal case-sensitive canonical-code prefix search","tags":["Canonical field policies"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/canonical-field-policies/{property}":{"get":{"operationId":"getCanonicalFieldPolicy","summary":"Read one canonical field policy under current human MFA2 administrator authority","tags":["Canonical field policies"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"setCanonicalFieldPolicy","summary":"Append an immutable tenant policy revision; admin retained and write roles a subset of read roles","tags":["Canonical field policies"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","readRoles","writeRoles"],"properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647},"readRoles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}},"writeRoles":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor"]}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/canonical-field-policies/{property}/reset":{"post":{"operationId":"resetCanonicalFieldPolicy","summary":"Restore default compatibility through a new immutable revision, never an untracked delete","tags":["Canonical field policies"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision"],"properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes":{"get":{"operationId":"listTenantClasses","summary":"Read tenant class headers with bounded literal code-prefix search","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createTenantClass","summary":"Create a tenant-owned internal class; no legal profile or publication","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code","label","description"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"label":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":0,"maxLength":1000}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}":{"get":{"operationId":"getTenantClass","summary":"Read one current tenant class header","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"reviseTenantClass","summary":"Revise class presentation or retirement under original draft revision","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","label","description","retired"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"label":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":0,"maxLength":1000},"retired":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/fields":{"get":{"operationId":"listTenantFields","summary":"Admin authoring field definitions; latest rights remain separate from frozen meaning","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createTenantField","summary":"Create an owned field with immutable code type unit and LOV semantics","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["classRevision","code","type","unit","options","label","description","readRoles","writeRoles"],"properties":{"classRevision":{"type":"integer","minimum":1,"maximum":2147483647},"code":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,63}$"},"type":{"type":"string","enum":["text","integer","decimal","lov"]},"unit":{"description":"Exact string unit or null; shared parser validates type and24-codepoint bound."},"options":{"type":"array","maxItems":50,"items":{"type":"object","required":["code","label"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"},"label":{"type":"string","minLength":1,"maxLength":200}}}},"label":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":0,"maxLength":1000},"readRoles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}},"writeRoles":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor"]}}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/fields/{fieldId}":{"get":{"operationId":"getTenantField","summary":"Admin read of one class-qualified field definition","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"fieldId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"reviseTenantField","summary":"Revise label ACL or retirement with original class and field revisions","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"fieldId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["classRevision","revision","label","description","readRoles","writeRoles","retired"],"properties":{"classRevision":{"type":"integer","minimum":1,"maximum":2147483647},"revision":{"type":"integer","minimum":1,"maximum":2147483647},"label":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":0,"maxLength":1000},"readRoles":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor","operator_reader"]}},"writeRoles":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string","enum":["operator_admin","operator_publisher","operator_editor"]}},"retired":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/profile-preview":{"get":{"operationId":"previewTenantProfile","summary":"Review the current coherent candidate before explicitly freezing it","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/profiles":{"get":{"operationId":"listTenantProfiles","summary":"Read immutable profile headers newest first with a version cursor","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"freezeTenantProfile","summary":"Freeze only the reviewed original class revision and candidate hash","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","sha256"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/profiles/{version}":{"get":{"operationId":"getTenantProfile","summary":"Read pinned meaning projected through current field rights","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/objects":{"get":{"operationId":"listTenantObjects","summary":"Read class-qualified object headers using bounded literal key-prefix search","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createTenantObject","summary":"Create an actual internal object under an explicitly selected immutable profile","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["key","profile"],"properties":{"key":{"type":"string","minLength":1,"maxLength":200},"profile":{"type":"object","required":["version","sha256"],"properties":{"version":{"type":"integer","minimum":1,"maximum":2147483647},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/objects/lookup":{"get":{"operationId":"lookupTenantObject","summary":"Read-only reconciliation by exact reserved user key; found is not proof of prior creation","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/objects/{objectId}":{"get":{"operationId":"getTenantObjectWorkspace","summary":"Read an exact current authorised scalar workspace without private frozen side channel","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"objectId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/objects/{objectId}/fields/{fieldId}":{"patch":{"operationId":"saveTenantObjectValue","summary":"Save one exact scalar or explicit clear using original object and authorisation revisions","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"objectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"fieldId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["revision","authorizationRevision","value"],"properties":{"revision":{"type":"integer","minimum":1,"maximum":2147483647},"authorizationRevision":{"type":"integer","minimum":1,"maximum":2147483647},"value":{"description":"Exact string up to10000codepoints or null. No JSON numeric values, coercion or type/unit conversion; SQL validates pinned semantics."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/tenant-classes/{classId}/objects/{objectId}/fields/{fieldId}/history":{"get":{"operationId":"readTenantObjectHistory","summary":"Read bounded retained exact history under current field rights; IDs/cursors are decimal strings","tags":["Tenant profiles"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"objectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"fieldId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/passports/{identifier}/cessation":{"post":{"operationId":"ceasePassport","summary":"Record that the battery was recycled: the passport ceases to exist (Article 77(8)); the identifier keeps resolving to a notice","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["reason"],"properties":{"reason":{"type":"string","minLength":1,"maxLength":500,"description":"Why the passport ceases, for example the recycling record (Article 77(8))"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/passports/{identifier}/predecessors":{"post":{"operationId":"linkPredecessorPassport","summary":"Link this passport to the published passport of the original battery (Article 77(7)); stores the key only","tags":["Passports"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["predecessor"],"properties":{"predecessor":{"type":"string","minLength":1,"maxLength":200,"pattern":"^(01/[0-9]{14}(/(22|10|21)/[^/]{1,20})+|25P/[A-Z0-9]{2}[A-Za-z0-9.-]{1,48}/S/[^/]{1,20})$","description":"Item-level identifier key of the published passport of the original battery (Article 77(7))"}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries:batch-register":{"post":{"operationId":"batchRegisterBatteries","summary":"Create or reconcile up to 500 batteries with identifiers in one transaction (savepoint per row); an existing identity answers existed without changes; never publishes","tags":["Bulk entry"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["model","scheme","serials"],"properties":{"model":{"type":"string","minLength":1,"maxLength":100,"description":"Key of the battery model of this organisation"},"scheme":{"type":"string","enum":["gs1","di"],"description":"gs1: GS1 Digital Link with gtin; di: 25P/{product}/S/{serial} (EN 18219:2026, ID scheme 1)"},"gtin":{"type":"string","minLength":1,"maxLength":14},"product":{"type":"string","minLength":1,"maxLength":50},"serials":{"type":"array","minItems":1,"maxItems":500,"items":{"type":"string","minLength":1,"maxLength":20},"description":"1 to 500 distinct serial numbers"}}},"example":{"model":"MODEL-A-48V","scheme":"gs1","gtin":"09506000134352","serials":["SN-000123","SN-000124"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["results","counts"],"properties":{"results":{"type":"array","description":"One entry per input row, in input order","items":{"type":"object","required":["row","key","state"],"properties":{"row":{"type":"integer","minimum":0,"description":"Index of the input row"},"key":{"type":"string"},"state":{"type":"string","enum":["created","existed","updated","unchanged","error"],"description":"created / existed (registration), updated / unchanged (values), error (row rolled back)"},"identifier":{"type":"string","description":"Registration: the identifier key"},"code":{"type":"string","description":"Error: stable azl code (Problem.code)"},"property":{"type":"string","description":"Error: the property that failed"},"reason":{"type":"string","description":"Error: Dutch reason for the user"},"saved":{"type":"integer"},"unchanged":{"type":"integer"},"revision":{"type":"integer","description":"Values: battery revision after this row"},"published":{"type":"boolean"},"passportStatus":{"type":"string"}}}},"counts":{"type":"object","properties":{"created":{"type":"integer","minimum":0},"existed":{"type":"integer","minimum":0},"updated":{"type":"integer","minimum":0},"unchanged":{"type":"integer","minimum":0},"error":{"type":"integer","minimum":0}}}}},"example":{"results":[{"row":0,"key":"SN-000123","state":"created","identifier":"01/09506000134352/21/SN-000123","published":false,"passportStatus":null},{"row":1,"key":"SN-000124","state":"error","code":"azl-20021","reason":"Bestaande gegevens komen niet overeen met model of identificatie."}],"counts":{"created":1,"existed":0,"updated":0,"unchanged":0,"error":1}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries:batch-values":{"post":{"operationId":"batchBatteryValues","summary":"Write exact battery-level values for up to 500 batteries in one transaction (savepoint per row); equal values are not written again","tags":["Bulk entry"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor"],"x-min-aal":2,"x-tenant-scoped":true,"x-human-only":true,"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["rows"],"properties":{"rows":{"type":"array","minItems":1,"maxItems":500,"description":"1 to 500 rows with distinct keys; at most 256 distinct properties per chunk","items":{"type":"object","required":["key","values"],"properties":{"key":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9][A-Za-z0-9._ -]{0,99}$","description":"Serial number (key) of a battery of this organisation"},"revision":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Optional expected battery revision; a stale value fails this row with azl-20020"},"values":{"type":"object","description":"Battery-level property code -> the complete ordered list of rows (1 to 500). An absent property is untouched; clearing is a single-entry action.","additionalProperties":{"type":"array","minItems":1,"maxItems":500,"items":{"type":"object","required":["value"],"properties":{"value":{"type":"string","maxLength":20000,"description":"Exact text (decision 69). Numbers in plain decimal notation as a string, e.g. \"12.50\"; never a JSON number. Year-month as YYYY-MM; LOV as code; uri/document/image as https URL."},"language":{"type":"string","pattern":"^(?:[a-z]{2,3}(?:-[A-Z]{2})?)?$","description":"BCP 47 tag for text values; empty otherwise"}}}}}}}},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647},"description":"Expected canonical field policy revisions for touched properties; 0 means never overridden. Missing expectations are never filled by the server."}}},"example":{"rows":[{"key":"SN-000123","values":{"state-of-certified-energy":[{"value":"97.50"}],"battery-status":[{"value":"original"}]}}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["results","counts"],"properties":{"results":{"type":"array","description":"One entry per input row, in input order","items":{"type":"object","required":["row","key","state"],"properties":{"row":{"type":"integer","minimum":0,"description":"Index of the input row"},"key":{"type":"string"},"state":{"type":"string","enum":["created","existed","updated","unchanged","error"],"description":"created / existed (registration), updated / unchanged (values), error (row rolled back)"},"identifier":{"type":"string","description":"Registration: the identifier key"},"code":{"type":"string","description":"Error: stable azl code (Problem.code)"},"property":{"type":"string","description":"Error: the property that failed"},"reason":{"type":"string","description":"Error: Dutch reason for the user"},"saved":{"type":"integer"},"unchanged":{"type":"integer"},"revision":{"type":"integer","description":"Values: battery revision after this row"},"published":{"type":"boolean"},"passportStatus":{"type":"string"}}}},"counts":{"type":"object","properties":{"created":{"type":"integer","minimum":0},"existed":{"type":"integer","minimum":0},"updated":{"type":"integer","minimum":0},"unchanged":{"type":"integer","minimum":0},"error":{"type":"integer","minimum":0}}}}},"example":{"results":[{"row":0,"key":"SN-000123","state":"updated","saved":2,"unchanged":0,"revision":3}],"counts":{"created":0,"existed":0,"updated":1,"unchanged":0,"error":0}}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"Conflict (azl-20020, azl-20021, azl-20030, azl-20031)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/batteries/{key}/values/{property}/history":{"get":{"operationId":"batteryValueHistory","summary":"Value history of one battery property: who, when, old -> new as exact strings (newest first); readable under the rights of the value","tags":["Audit"],"security":[{"apiKey":[]},{"session":[]}],"x-roles":["operator_admin","operator_publisher","operator_editor","operator_reader"],"x-min-aal":1,"x-tenant-scoped":true,"x-scope":"battery:read","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"property","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"before","in":"query","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","required":["key","property","type","items"],"properties":{"key":{"type":"string"},"property":{"type":"string"},"type":{"type":"string"},"next":{"type":"integer","description":"Cursor for before="},"items":{"type":"array","items":{"type":"object","required":["id","at","actor","operation","rowId"],"properties":{"id":{"type":"integer"},"at":{"type":"string","format":"date-time"},"actor":{"type":"object","properties":{"sub":{"type":"string"},"name":{"type":"string"}}},"requestId":{"type":"string"},"operation":{"type":"string","enum":["INSERT","UPDATE","DELETE"]},"rowId":{"type":"string"},"old":{"type":"object","properties":{"value":{"type":"string","description":"Exact stored text; null when encrypted"},"language":{"type":"string"},"ordinal":{"type":"integer"},"encrypted":{"type":"boolean"}},"description":"Row before the change; null for INSERT"},"new":{"type":"object","properties":{"value":{"type":"string","description":"Exact stored text; null when encrypted"},"language":{"type":"string"},"ordinal":{"type":"integer"},"encrypted":{"type":"boolean"}},"description":"Row after the change; null for DELETE"}}}}}},"example":{"key":"SN-000123","property":"state-of-certified-energy","type":"decimal","items":[{"id":42,"at":"2026-11-08T10:00:00.000Z","actor":{"sub":"user-id","name":"Editor"},"requestId":"req-1","operation":"UPDATE","rowId":"1b4e28ba-2fa1-11d2-883f-0016d3cca427","old":{"value":"98.00","language":"","ordinal":0},"new":{"value":"97.50","language":"","ordinal":0}}]}}}},"400":{"description":"Invalid request (azl-20002, azl-20004, azl-20019)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"Authentication required (azl-20001)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not allowed (azl-20003, azl-20012, azl-20023)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Not found, or an object of another organisation (azl-20011)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"securitySchemes":{"session":{"type":"apiKey","in":"cookie","name":"__Host-session","description":"Browser session of a signed-in person (two factors). Nothing to enter here: when you are signed in to the application in this browser, Try it out sends the session automatically. Only operations marked human only (publishing, users, keys) need it; integrations use the API key above. Niets invullen: dit is de browsersessie van een ingelogde persoon; koppelingen gebruiken de API-sleutel hierboven."},"apiKey":{"type":"http","scheme":"bearer","description":"API key of your organisation, created by an administrator in the management screen (see /docs/sleutels). Click Authorize, paste the key; it is sent as Authorization: Bearer <key>, never in a query string."}},"schemas":{"PassportValue.identifier":{"description":"Value of data type identifier: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","maxLength":10000},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","maxLength":10000},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","maxLength":10000},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","maxLength":10000},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.text":{"description":"Value of data type text: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","maxLength":10000},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","maxLength":10000},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","maxLength":10000},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","maxLength":10000},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.year_month":{"description":"Value of data type year_month: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","pattern":"^[0-9]{4}-(0[1-9]|1[0-2])$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.lov.battery_category":{"description":"Value of data type lov battery_category: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","enum":["LMT","EV","IND_stationary","IND_other"]},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","enum":["LMT","EV","IND_stationary","IND_other"]},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","enum":["LMT","EV","IND_stationary","IND_other"]},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","enum":["LMT","EV","IND_stationary","IND_other"]},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.decimal":{"description":"Value of data type decimal: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"number"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"number"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"number"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"number"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.lov.battery_status":{"description":"Value of data type lov battery_status: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","enum":["original","repurposed","re-used","remanufactured","waste"]},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","enum":["original","repurposed","re-used","remanufactured","waste"]},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","enum":["original","repurposed","re-used","remanufactured","waste"]},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","enum":["original","repurposed","re-used","remanufactured","waste"]},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.image":{"description":"Value of data type image: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.document":{"description":"Value of data type document: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.unspecified":{"description":"Value of data type unspecified: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","maxLength":10000},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","maxLength":10000},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","maxLength":10000},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","maxLength":10000},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.integer":{"description":"Value of data type integer: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"integer"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"integer"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"integer"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"integer"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportValue.uri":{"description":"Value of data type uri: one value, one {value, language} entry or a list of up to 500 of them","anyOf":[{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}},{"type":"array","maxItems":500,"items":{"anyOf":[{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"type":"string","format":"uri","pattern":"^https://[^\\s]+$"},"language":{"type":"string","pattern":"^([a-z]{2,3}(-[A-Z]{2})?)?$"}}}]}}]},"PassportData":{"type":"object","additionalProperties":false,"description":"Data of the published version, catalogue 1.1.0: {data group: {attribute: value}}. Values above the caller's clearance are absent, not null.","properties":{"general":{"type":"object","title":"General battery and manufacturer information","additionalProperties":false,"properties":{"battery-passport-identifier":{"$ref":"#/components/schemas/PassportValue.identifier","title":"Battery passport identifier","description":"Art. 77(3); Art. 3(66); Art. 38(6)","x-access-level":"public","x-level":"battery","x-data-type":"identifier"},"battery-identifier":{"$ref":"#/components/schemas/PassportValue.identifier","title":"Battery identifier","description":"Annex XIII (1a) Annex VI Part A, Art. 38(6)","x-access-level":"public","x-level":"battery","x-data-type":"identifier"},"operator-identifier":{"$ref":"#/components/schemas/PassportValue.identifier","title":"Operator identifier and information","description":"Art. 77(3); Art. 77(4); EC guidance v3.2 item 2; identifier form per ESPR Annex III(h) and EN 18219 clause 6","x-access-level":"public","x-level":"battery","x-data-type":"identifier"},"manufacturer-identifier":{"$ref":"#/components/schemas/PassportValue.identifier","title":"Manufacturer identifier and information","description":"Annex VI Part A (1); Art. 3(33); Art. 38(7); ESPR Art. 2(32)","x-access-level":"public","x-level":"model","x-data-type":"identifier"},"manufacturing-place":{"$ref":"#/components/schemas/PassportValue.text","title":"Manufacturing place","description":"Annex XIII (1a); Annex VI, Part A(3); Annex XIII (1)","x-access-level":"public","x-level":"model","x-data-type":"text"},"manufacturing-date":{"$ref":"#/components/schemas/PassportValue.year_month","title":"Manufacturing date","description":"Annex XIII (1a); Annex VI Part A (4); Annex VII Part B (1); JSON-LD: bat:manufacturingDate","x-access-level":"public","x-level":"battery","x-data-type":"year_month"},"putting-into-service-date":{"$ref":"#/components/schemas/PassportValue.year_month","title":"Date of putting the battery into service","description":"Annex VII Part B (1)","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"year_month"},"warranty-period":{"$ref":"#/components/schemas/PassportValue.year_month","title":"Warranty period of the battery","description":"Annex XIII (1m)","x-access-level":"public","x-level":"model","x-data-type":"year_month"},"battery-category":{"$ref":"#/components/schemas/PassportValue.lov.battery_category","title":"Battery category","description":"Annex XIII (1a); Annex VI Part A (2); JSON-LD: bat:batteryCategory","x-access-level":"public","x-level":"model","x-data-type":"lov"},"battery-mass":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Battery mass","description":"Annex XIII (1a); Annex VI Part A (5); unit kg","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"kg"},"battery-status":{"$ref":"#/components/schemas/PassportValue.lov.battery_status","title":"Battery status","description":"Annex XIII 4(c); JSON-LD: bat:batteryStatus","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"lov"}}},"compliance":{"type":"object","title":"Compliance, labels and certifications","additionalProperties":false,"properties":{"separate-collection-symbol":{"$ref":"#/components/schemas/PassportValue.image","title":"Separate collection symbol","description":"Annex XIII 1(q); Art. 13(4); Annex VI Part B","x-access-level":"public","x-level":"model","x-data-type":"image"},"cadmium-lead-symbols":{"$ref":"#/components/schemas/PassportValue.image","title":"Symbols for cadmium and lead","description":"Annex XIII 1(q); Art. 13(5)","x-access-level":"public","x-level":"model","x-data-type":"image"},"carbon-footprint-label":{"$ref":"#/components/schemas/PassportValue.image","title":"Carbon footprint label","description":"Article 7(2) via Annex XIII (1c)","x-access-level":"public","x-level":"model","x-data-type":"image"},"extinguishing-agent":{"$ref":"#/components/schemas/PassportValue.text","title":"Extinguishing agent","description":"Annex VI Part A (9); JSON-LD: bat:extinguishingAgent","x-access-level":"public","x-level":"battery","x-data-type":"text"},"meaning-of-labels-and-symbols":{"$ref":"#/components/schemas/PassportValue.text","title":"Meaning of labels and symbols","description":"Annex XIII (1s);Art. 74 1(e)","x-access-level":"public","x-level":"model","x-data-type":"text"},"eu-declaration-of-conformity":{"$ref":"#/components/schemas/PassportValue.document","title":"EU declaration of conformity","description":"Annex XIII (1r); Art. 18; Annex IX","x-access-level":"public","x-level":"model","x-data-type":"document"},"test-report-results":{"$ref":"#/components/schemas/PassportValue.document","title":"Results of test reports proving compliance","description":"Annex XIII (3); Annex VIII Part A 2(h)","x-access-level":"authorities","x-level":"model","x-data-type":"document"}}},"carbon":{"type":"object","title":"Carbon footprint","additionalProperties":false,"properties":{"carbon-footprint-per-functional-unit":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Battery carbon footprint per Functional Unit","description":"Annex XIII (1c) → Art. 7; unit kgCO2e/kWh","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"kgCO2e/kWh"},"cf-raw-material-stage":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Contribution of raw material acquisition and pre-processing lifecycle stage","description":"Annex XIII (1c) → Art. 7; unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"cf-production-stage":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Contribution of main product production/manufacturing lifecycle stage","description":"Annex XIII (1c) → Art. 7; unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"cf-distribution-stage":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Contribution of distribution lifecycle stage","description":"Annex XIII 1(c) → Art. 7; unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"cf-end-of-life-stage":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Contribution of end of life and recycling lifecycle stage","description":"Annex XIII (1c) → Art. 7; unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"carbon-footprint-performance-class":{"$ref":"#/components/schemas/PassportValue.text","title":"Carbon footprint performance class","description":"Annex XIII (1c); Art. 7(2)","x-access-level":"public","x-level":"model","x-data-type":"text"},"carbon-footprint-study-link":{"$ref":"#/components/schemas/PassportValue.document","title":"Web link to public carbon footprint study","description":"Annex XIII (1c); Art. 7 1(g)","x-access-level":"public","x-level":"model","x-data-type":"document"},"cf-general-information":{"$ref":"#/components/schemas/PassportValue.unspecified","title":"General battery and manufacturer information","description":"Annex XIII, Article 7(1)","x-access-level":"public","x-level":"model","x-data-type":"unspecified"},"absolute-carbon-footprint":{"$ref":"#/components/schemas/PassportValue.integer","title":"Absolute battery carbon footprint","description":"n.a.; unit [tCO2e]","x-access-level":"public","x-level":"model","x-data-type":"integer","x-unit":"[tCO2e]"}}},"duediligence":{"type":"object","title":"Supply chain due diligence","additionalProperties":false,"properties":{"due-diligence-report":{"$ref":"#/components/schemas/PassportValue.document","title":"Information of due diligence report","description":"Annex XIII 1(d); Art. 52(3); Art. 48(1)","x-access-level":"public","x-level":"model","x-data-type":"document"},"third-party-assurances":{"$ref":"#/components/schemas/PassportValue.unspecified","title":"Third party assurances of recognised schemes","description":"Art. 49(d)","x-access-level":"public","x-level":"model","x-data-type":"unspecified"},"supply-chain-indices":{"$ref":"#/components/schemas/PassportValue.unspecified","title":"Supply chain indices","description":"n.a.","x-access-level":"public","x-level":"model","x-data-type":"unspecified"}}},"materials":{"type":"object","title":"Battery materials and composition","additionalProperties":false,"properties":{"battery-chemistry":{"$ref":"#/components/schemas/PassportValue.text","title":"Battery chemistry","description":"Annex XIII (1b); Annex VI Part A (7)","x-access-level":"public","x-level":"model","x-data-type":"text"},"critical-raw-materials":{"$ref":"#/components/schemas/PassportValue.text","title":"Critical raw materials","description":"Annex XIII (1b); Annex VI Part A (10)","x-access-level":"public","x-level":"model","x-data-type":"text"},"cathode-anode-electrolyte-materials":{"$ref":"#/components/schemas/PassportValue.text","title":"Materials used in cathode, anode and electrolyte","description":"Annex XIII (2a)","x-access-level":"legitimate_interest_and_commission","x-level":"model","x-data-type":"text"},"hazardous-substances":{"$ref":"#/components/schemas/PassportValue.text","title":"Hazardous substances","description":"Annex XIII (1b); Annex VI Part A (8); JSON-LD: bat:hazardousSubstances","x-access-level":"public","x-level":"model","x-data-type":"text"},"impact-of-substances":{"$ref":"#/components/schemas/PassportValue.text","title":"Impact of substances on environment, human health, safety, persons","description":"Annex XIII (1s); Art. 74 1(f)","x-access-level":"public","x-level":"model","x-data-type":"text"}}},"circularity":{"type":"object","title":"Circularity and resource efficiency","additionalProperties":false,"properties":{"dismantling-information":{"$ref":"#/components/schemas/PassportValue.document","title":"Dismantling information: Manuals for the removal and the disassembly of the battery pack","description":"Annex XIII (2c)","x-access-level":"legitimate_interest_and_commission","x-level":"model","x-data-type":"document"},"part-numbers":{"$ref":"#/components/schemas/PassportValue.uri","title":"Part numbers for components","description":"Annex XIII (2b)","x-access-level":"legitimate_interest_and_commission","x-level":"model","x-data-type":"uri"},"spare-part-sources":{"$ref":"#/components/schemas/PassportValue.text","title":"Information on sources of spare parts","description":"Annex XIII (2b)","x-access-level":"legitimate_interest_and_commission","x-level":"model","x-data-type":"text"},"safety-measures":{"$ref":"#/components/schemas/PassportValue.document","title":"Safety measures","description":"Annex XIII (2d); Art. 74(2)","x-access-level":"legitimate_interest_and_commission","x-level":"model","x-data-type":"document"},"pre-consumer-recycled-nickel":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Pre-consumer recycled nickel share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"pre-consumer-recycled-cobalt":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Pre-consumer recycled cobalt share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"pre-consumer-recycled-lithium":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Pre-consumer recycled lithium share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"pre-consumer-recycled-lead":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Pre-consumer recycled lead share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"post-consumer-recycled-nickel":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Post-consumer recycled nickel share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"post-consumer-recycled-cobalt":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Post-consumer recycled cobalt share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"post-consumer-recycled-lithium":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Post-consumer recycled lithium share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"post-consumer-recycled-lead":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Post-consumer recycled lead share","description":"Annex XIII (1e); Art. 8(1); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"renewable-content-share":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Renewable content share","description":"Annex XIII (1f); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"end-user-waste-prevention":{"$ref":"#/components/schemas/PassportValue.document","title":"Information on the role of end-users in contributing to waste prevention","description":"Annex XIII 1(s); Art. 74(1)(a)","x-access-level":"public","x-level":"model","x-data-type":"document"},"end-user-separate-collection":{"$ref":"#/components/schemas/PassportValue.document","title":"Information on the role of end-users in contributing to the separate collection of waste batteries","description":"Annex XIII 1(s); Art. 74(1)(b)","x-access-level":"public","x-level":"model","x-data-type":"document"},"collection-second-life-treatment":{"$ref":"#/components/schemas/PassportValue.document","title":"Information on battery collection, preparation for second life and on treatment at end of life","description":"Annex XIII 1(s); Art. 74(1)(c)","x-access-level":"public","x-level":"model","x-data-type":"document"}}},"performance":{"type":"object","title":"Performance and durability","additionalProperties":false,"properties":{"rated-capacity":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Rated capacity","description":"Annex XIII (1g); Annex IV Part A (1) (definition); unit Ah","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"Ah"},"remaining-capacity":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Remaining capacity","description":"Annex XIII 4(a); Annex XIII 4(b); Art. 14; Annex VII Part A (1); unit Ah","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"Ah"},"capacity-fade":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Capacity fade","description":"Annex XIII 4(a); Annex IV Part A (2); unit %","x-access-level":"legitimate_interest","x-level":"model","x-data-type":"decimal","x-unit":"%"},"certified-usable-battery-energy":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Certified usable battery energy","description":"n.a.; unit kWh","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"kWh"},"remaining-usable-battery-energy":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Remaining usable battery energy","description":"n.a.; unit kWh","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"kWh"},"state-of-certified-energy":{"$ref":"#/components/schemas/PassportValue.decimal","title":"State of certified energy (SOCE)","description":"Annex XIII 4(b); Art. 14; Annex VII Part A (EV); unit %","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"%"},"state-of-charge":{"$ref":"#/components/schemas/PassportValue.decimal","title":"State of Charge (SoC)","description":"Annex XIII (4d); Article 3 1(27); unit %","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"%"},"minimum-voltage":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Minimum voltage","description":"Annex XIII (1h); unit V","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"V"},"maximum-voltage":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Maximum voltage","description":"Annex XIII (1h); unit V","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"V"},"nominal-voltage":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Nominal voltage","description":"Annex XIII (1h); unit V","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"V"},"original-power-capability":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Original power capability","description":"Annex XIII (1i); Art. 10, Annex IV Part B (4) → measurement at 80 % SoC and 20% SoC required; unit W","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"W"},"remaining-power-capability":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Remaining power capability","description":"Annex XIII 4(a); Annex XIII 4(b); Art. 14: Annex VII Part A (2) \"where possible, remaining power capability\"; Art. 10: Annex IV (3) (definition of power); Annex IV Part B (4) --> measurement at 80 % SoC and 20% SoC required; unit W","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"W"},"power-fade":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Power fade","description":"Annex XIII 4(a); Annex IV Part A (4) (power fade in %); Annex IV Part B (4) → measurement at 80 % SoC required; unit %","x-access-level":"legitimate_interest","x-level":"model","x-data-type":"decimal","x-unit":"%"},"maximum-permitted-power":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Maximum permitted battery power","description":"Annex XIII (1i) (power limits); unit W","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"W"},"power-to-energy-ratio":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Ratio between nominal battery power and battery energy","description":"Annex IV Part B (2); unit W/Wh","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"W/Wh"},"initial-round-trip-efficiency":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Initial round trip energy efficiency","description":"Annex XIII (1n); Art. 10: Annex IV (6) (definition); Annex IV Part A (4); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"round-trip-efficiency-50pct-cycle-life":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Round trip energy efficiency at 50% of cycle life","description":"Annex XIII 1(n); Annex IV (6) (only definition); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"remaining-round-trip-efficiency":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Remaining round trip energy efficiency","description":"Annex XIII 4(a); Annex XIII 4(b); Art. 14: Annex VII Part A (3); Art. 10: Annex IV Part A (4) (definition); unit %","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"%"},"round-trip-efficiency-fade":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Energy round trip efficiency fade","description":"Annex XIII 4(a); Annex IV Part A (4); unit %","x-access-level":"legitimate_interest","x-level":"model","x-data-type":"decimal","x-unit":"%"},"initial-self-discharge-rate":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Initial self-discharge rate","description":"n.a.; unit %/month","x-access-level":"legitimate_interest","x-level":"model","x-data-type":"decimal","x-unit":"%/month"},"current-self-discharge-rate":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Current self-discharge rate","description":"n.a.; unit %/month","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"%/month"},"evolution-of-self-discharge":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Evolution of self-discharge rates","description":"Annex XIII 4(b); Art. 14: Annex VII Part A (4); unit %","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"%"},"initial-internal-resistance":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Initial internal resistance of battery cell and pack (module recommended)","description":"Annex XIII (1o); Art. 10: Annex IV Part A (3) (+definition of internal resistance); unit Ohm","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"Ohm"},"internal-resistance-increase":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Internal resistance increase of pack (cell and module recommended)","description":"Annex XIII 4(a); Annex XIII 4(b) (ohmic resistance); Annex IV, Part A(3); unit %","x-access-level":"legitimate_interest","x-level":"model","x-data-type":"decimal","x-unit":"%"},"expected-lifetime-years":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Expected lifetime in calendar years","description":"Annex IV, Part A(5); Annex XIII (1); Annex XIII (4a); unit years","x-access-level":"legitimate_interest","x-level":"model","x-data-type":"decimal","x-unit":"years"},"expected-lifetime-cycles":{"$ref":"#/components/schemas/PassportValue.integer","title":"Expected lifetime: Number of charge-discharge cycles","description":"Test methods and reference conditions are subject to the ongoing standardization process at CEN/CENELEC relating to standardization request M/579.; JSON-LD: bat:expectedLifetimeCycles","x-access-level":"public","x-level":"model","x-data-type":"integer"},"number-of-full-cycles":{"$ref":"#/components/schemas/PassportValue.integer","title":"Number of full charging and discharging cycles","description":"Annex XIII (4d); Art. 14: Annex VII Part B (5)","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"integer"},"cycle-life-reference-test":{"$ref":"#/components/schemas/PassportValue.text","title":"Cycle-life reference test","description":"Annex XIII (1j); JSON-LD: bat:cycleLifeReferenceTest","x-access-level":"public","x-level":"model","x-data-type":"text"},"c-rate-cycle-life-test":{"$ref":"#/components/schemas/PassportValue.decimal","title":"C-rate of relevant cycle-life test","description":"Annex XIII (1p); unit A/Ah","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"A/Ah"},"energy-throughput":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Energy throughput","description":"Annex VII Part B (2); unit kWh","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"kWh"},"capacity-throughput":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Capacity throughput","description":"Annex VII Part B (3); unit Ah","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"Ah"},"capacity-threshold-for-exhaustion":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Capacity threshold for exhaustion","description":"Annex XIII (1k); unit %","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"%"},"temperature-information":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Temperature information","description":"Annex XIII (4d); unit °C","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"decimal","x-unit":"°C"},"idle-temperature-lower-boundary":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Temperature range idle state, lower boundary","description":"Annex XIII (1l); unit °C","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"°C"},"idle-temperature-upper-boundary":{"$ref":"#/components/schemas/PassportValue.decimal","title":"Temperature range idle state, upper boundary","description":"Annex XIII (1l); unit °C","x-access-level":"public","x-level":"model","x-data-type":"decimal","x-unit":"°C"},"time-above-temperature-boundary":{"$ref":"#/components/schemas/PassportValue.integer","title":"Time spent in extreme temperatures above boundary","description":"Annex VII Part B (4); unit Minutes","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"integer","x-unit":"Minutes"},"time-below-temperature-boundary":{"$ref":"#/components/schemas/PassportValue.integer","title":"Time spent in extreme temperatures below boundary","description":"Annex VII Part B (4); unit Minutes","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"integer","x-unit":"Minutes"},"charging-time-above-temperature-boundary":{"$ref":"#/components/schemas/PassportValue.integer","title":"Time spent charging during extreme temperatures above boundary","description":"Annex VII Part B (4); unit Minutes","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"integer","x-unit":"Minutes"},"charging-time-below-temperature-boundary":{"$ref":"#/components/schemas/PassportValue.integer","title":"Time spent charging during extreme temperatures below boundary","description":"Annex VII Part B (4); unit Minutes","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"integer","x-unit":"Minutes"},"deep-discharge-events":{"$ref":"#/components/schemas/PassportValue.integer","title":"Number of deep discharge events","description":"Annex VII Part B (4)","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"integer"},"overcharge-events":{"$ref":"#/components/schemas/PassportValue.integer","title":"Number of overcharge events","description":"n.a.","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"integer"},"accident-information":{"$ref":"#/components/schemas/PassportValue.document","title":"Information on accidents","description":"Annex XIII (4d)","x-access-level":"legitimate_interest","x-level":"battery","x-data-type":"document"}}}}},"Passport":{"type":"object","required":["identifier","version","published_at","config_version","levels","data","integrity"],"properties":{"identifier":{"type":"string","description":"Unique identifier of the individual battery (Article 77(3); EN 18219:2026 ID scheme 1)"},"version":{"type":"integer","minimum":1},"published_at":{"type":"string","format":"date-time"},"corrects_version":{"type":["integer","null"]},"reason":{"type":["string","null"]},"config_version":{"type":"string","description":"Catalogue version the version was published under"},"superseded_by":{"type":["integer","null"],"description":"Next version, if any"},"passport_status":{"type":["string","null"]},"levels":{"type":"array","items":{"type":"string","enum":["public","legitimate_interest_and_commission","authorities","legitimate_interest"]},"description":"Access levels (Annex XIII, points 1 to 4) contained in this answer"},"data":{"$ref":"#/components/schemas/PassportData"},"integrity":{"type":"array","description":"One entry per layer in levels: SHA-256 (lowercase hex) of the UTF-8 bytes of the PostgreSQL jsonb text output of that layer's content, computed at publication and immutable (007_passport.sql, layer_hash). With one layer, that content is data itself.","items":{"type":"object","required":["level","sha256"],"additionalProperties":false,"properties":{"level":{"type":"string","enum":["public","legitimate_interest_and_commission","authorities","legitimate_interest"]},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"}}}}}},"PassportJsonLd":{"description":"JSON-LD 1.1 representation (Accept: application/ld+json): the same members as Passport plus @context (/v1/contexts/battery-passport.jsonld), @id, @type, digitalProductPassportId and granularity. The context maps 7 attributes to the Commission battery vocabulary 1.0.0 (pinned 6 November 2026); the others are AccuZegel terms.","allOf":[{"$ref":"#/components/schemas/Passport"},{"type":"object","required":["@context","@id","@type"],"properties":{"@context":{"type":"string","format":"uri"},"@id":{"type":"string","format":"uri"},"@type":{"const":"DigitalProductPassport"},"digitalProductPassportId":{"type":"string","format":"uri"},"granularity":{"const":"item"}}}]},"BatteryUpdateData":{"type":"object","additionalProperties":false,"description":"Battery-level data, catalogue 1.1.0: {data group: {attribute: value | null}}. Model-level data is written on the battery model.","properties":{"general":{"type":"object","additionalProperties":false,"properties":{"manufacturing-date":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.year_month"},{"type":"null"}],"title":"Manufacturing date","description":"Annex XIII (1a); Annex VI Part A (4); Annex VII Part B (1); null removes the value","x-access-level":"public","x-data-type":"year_month"},"putting-into-service-date":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.year_month"},{"type":"null"}],"title":"Date of putting the battery into service","description":"Annex VII Part B (1); null removes the value","x-access-level":"legitimate_interest","x-data-type":"year_month"},"battery-status":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.lov.battery_status"},{"type":"null"}],"title":"Battery status","description":"Annex XIII 4(c); null removes the value","x-access-level":"legitimate_interest","x-data-type":"lov","x-annex-xiii-point-4":true}}},"compliance":{"type":"object","additionalProperties":false,"properties":{"extinguishing-agent":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.text"},{"type":"null"}],"title":"Extinguishing agent","description":"Annex VI Part A (9); null removes the value","x-access-level":"public","x-data-type":"text"}}},"performance":{"type":"object","additionalProperties":false,"properties":{"remaining-capacity":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Remaining capacity","description":"Annex XIII 4(a); Annex XIII 4(b); Art. 14; Annex VII Part A (1); unit Ah; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"Ah","x-annex-xiii-point-4":true},"remaining-usable-battery-energy":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Remaining usable battery energy","description":"n.a.; unit kWh; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"kWh"},"state-of-certified-energy":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"State of certified energy (SOCE)","description":"Annex XIII 4(b); Art. 14; Annex VII Part A (EV); unit %; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"%","x-annex-xiii-point-4":true},"state-of-charge":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"State of Charge (SoC)","description":"Annex XIII (4d); Article 3 1(27); unit %; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"%","x-annex-xiii-point-4":true},"remaining-power-capability":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Remaining power capability","description":"Annex XIII 4(a); Annex XIII 4(b); Art. 14: Annex VII Part A (2) \"where possible, remaining power capability\"; Art. 10: Annex IV (3) (definition of power); Annex IV Part B (4) --> measurement at 80 % SoC and 20% SoC required; unit W; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"W","x-annex-xiii-point-4":true},"remaining-round-trip-efficiency":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Remaining round trip energy efficiency","description":"Annex XIII 4(a); Annex XIII 4(b); Art. 14: Annex VII Part A (3); Art. 10: Annex IV Part A (4) (definition); unit %; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"%","x-annex-xiii-point-4":true},"current-self-discharge-rate":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Current self-discharge rate","description":"n.a.; unit %/month; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"%/month"},"evolution-of-self-discharge":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Evolution of self-discharge rates","description":"Annex XIII 4(b); Art. 14: Annex VII Part A (4); unit %; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"%","x-annex-xiii-point-4":true},"number-of-full-cycles":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.integer"},{"type":"null"}],"title":"Number of full charging and discharging cycles","description":"Annex XIII (4d); Art. 14: Annex VII Part B (5); null removes the value","x-access-level":"legitimate_interest","x-data-type":"integer","x-annex-xiii-point-4":true},"energy-throughput":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Energy throughput","description":"Annex VII Part B (2); unit kWh; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"kWh"},"capacity-throughput":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Capacity throughput","description":"Annex VII Part B (3); unit Ah; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"Ah"},"temperature-information":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.decimal"},{"type":"null"}],"title":"Temperature information","description":"Annex XIII (4d); unit °C; null removes the value","x-access-level":"legitimate_interest","x-data-type":"decimal","x-unit":"°C","x-annex-xiii-point-4":true},"time-above-temperature-boundary":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.integer"},{"type":"null"}],"title":"Time spent in extreme temperatures above boundary","description":"Annex VII Part B (4); unit Minutes; null removes the value","x-access-level":"legitimate_interest","x-data-type":"integer","x-unit":"Minutes"},"time-below-temperature-boundary":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.integer"},{"type":"null"}],"title":"Time spent in extreme temperatures below boundary","description":"Annex VII Part B (4); unit Minutes; null removes the value","x-access-level":"legitimate_interest","x-data-type":"integer","x-unit":"Minutes"},"charging-time-above-temperature-boundary":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.integer"},{"type":"null"}],"title":"Time spent charging during extreme temperatures above boundary","description":"Annex VII Part B (4); unit Minutes; null removes the value","x-access-level":"legitimate_interest","x-data-type":"integer","x-unit":"Minutes"},"charging-time-below-temperature-boundary":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.integer"},{"type":"null"}],"title":"Time spent charging during extreme temperatures below boundary","description":"Annex VII Part B (4); unit Minutes; null removes the value","x-access-level":"legitimate_interest","x-data-type":"integer","x-unit":"Minutes"},"deep-discharge-events":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.integer"},{"type":"null"}],"title":"Number of deep discharge events","description":"Annex VII Part B (4); null removes the value","x-access-level":"legitimate_interest","x-data-type":"integer"},"overcharge-events":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.integer"},{"type":"null"}],"title":"Number of overcharge events","description":"n.a.; null removes the value","x-access-level":"legitimate_interest","x-data-type":"integer"},"accident-information":{"anyOf":[{"$ref":"#/components/schemas/PassportValue.document"},{"type":"null"}],"title":"Information on accidents","description":"Annex XIII (4d); null removes the value","x-access-level":"legitimate_interest","x-data-type":"document","x-annex-xiii-point-4":true}}}}},"BatteryUpdate":{"type":"object","required":["data"],"description":"Machine update of one battery, including usage and status data (Annex XIII, point 4). revision is required by convention for integrations; a stale value answers azl-20020. Numbers must survive JSON transport unchanged or the request is rejected (decision 83). Publication remains a human action.","properties":{"data":{"$ref":"#/components/schemas/BatteryUpdateData"},"revision":{"type":"integer","minimum":1},"source":{"type":"string","maxLength":500},"policyRevisions":{"type":"object","additionalProperties":{"type":"integer","minimum":0,"maximum":2147483647}}}},"Problem":{"type":"object","required":["code","title","status","request_id"],"properties":{"code":{"type":"string","enum":["azl-20001","azl-20002","azl-20003","azl-20004","azl-20005","azl-20006","azl-20007","azl-20008","azl-20009","azl-20011","azl-20012","azl-20013","azl-20014","azl-20015","azl-20016","azl-20019","azl-20020","azl-20021","azl-20022","azl-20023","azl-20025","azl-20053","azl-20054","azl-20052","azl-20051","azl-20050","azl-20040","azl-20041","azl-20042","azl-20030","azl-20031"]},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"request_id":{"type":"string"}}}}}}