The condition data of a unit (the registry's dynamic fields)
Any member. The dynamic fields visible for the unit and their current values with measured_at.
apiKeyAuthorizationBearer <token>Organisation API key sent as Authorization: Bearer bp_live_… (ADR-017). Accepted only by the
operations that list this scheme, with the scope in their x-api-key-scope.
batteryId*stringuuidThe condition data.
application/json- response
battery_id*stringuuidfield_keys*array<>The dynamic fields visible for the unit, in registry order.
republish*ConditionRepublishWhen accepted condition data reaches a published passport (ADR-016): immediate or daily (02:00 UTC).
"immediate""daily"values*array<>Current values of these fields.
curl -X GET 'https://example.com/api/v1/batteries/497f6eca-6276-4993-bfeb-53cbbbba6f08/condition'{ "battery_id": "bf9efcd2-a647-473f-b459-71d521ebe1ad", "field_keys": [ "string" ], "republish": "immediate", "values": [ { "checks": [ { "check_key": "string", "message": { "de": "string", "en": "string" }, "result": "pass" } ], "evidence": [ { "access_tier": "public", "filename": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "declaration_of_conformity", "revision": 1, "superseded": true, "title": "string" } ], "field_key": "string", "measured_at": "2019-08-24T14:15:22Z", "recorded_at": "2019-08-24T14:15:22Z", "recorded_by": { "display_name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "registry_version": "string", "responsible": { "display_name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "review_note": "string", "review_status": "captured", "reviewed_at": "2019-08-24T14:15:22Z", "reviewed_by": { "display_name": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "revision": 1, "source": "manual", "superseded_at": "2019-08-24T14:15:22Z", "unit": "string", "value": null } ]}Record an event in the life of a unit POST
Editor and above, or an API key with the `condition` scope (source `api`, ADR-017). `occurred_on` lies between the manufacturing date and today. `evidence_ids` name documents of the evidence library (a diagnostic report, a repair protocol). Events are records: they do not change the unit's data; condition values are reported with `updateCondition`, second life with `createSecondLifeBattery`.
The lifecycle of a unit, newest first GET
Any member. Events recorded by members, service-partner reports, condition updates and second life.