# The condition data of a unit (the registry's dynamic fields)

> `GET /batteries/{batteryId}/condition` · Scope: `read` · operationId `getCondition`

Any member. The dynamic fields visible for the unit and their current values with `measured_at`.

## Path parameters

- **batteryId** `string (uuid)` (required)

## Responses

### 200 (`application/json`)

The condition data.

- **battery_id** `string (uuid)` (required)
- **field_keys** `string[]` (required): The dynamic fields visible for the unit, in registry order.
- **republish** `string` (required, one of: `immediate`, `daily`): When accepted condition data reaches a published passport (ADR-016): `immediate` or `daily` (02:00 UTC).
- **values** `FieldValue[]` (required): Current values of these fields.
  - **checks** `ValueCheck[]` (required)
  - **evidence** `EvidenceRef[]`: Documents this revision rests on (set on approved revisions and supplier submissions).
  - **field_key** `string` (required)
  - **measured_at** `string (date-time)`: When a measured value (condition data, ADR-016) was measured.
  - **recorded_at** `string (date-time)` (required)
  - **recorded_by** `UserRef`
  - **registry_version** `string` (required)
  - **responsible** `UserRef`
  - **review_note** `string`
  - **review_status** `string` (required, one of: `captured`, `auto_checked`, `approved`, `rejected`)
  - **reviewed_at** `string (date-time)`
  - **reviewed_by** `UserRef`
  - **revision** `integer` (required)
  - **source** `string` (required, one of: `manual`, `import`, `supplier`, `api`, `system`)
  - **superseded_at** `string (date-time)`
  - **unit** `string`
  - **value** `any | null` (required): The value as JSON; null when the field was cleared.

### 400 (`application/problem+json`)

The request is malformed or failed validation (`validation_error`), or a token is invalid or expired (`invalid_token`).

### 401 (`application/problem+json`)

The API key is missing, unknown or revoked (`unauthenticated`).

### 403 (`application/problem+json`)

The API key may not perform this action (`forbidden`): it lacks the operation's scope, or the action needs more than a viewer's rights.

### 404 (`application/problem+json`)

The resource does not exist in the organisation of the API key, or the public passport is unknown (`not_found`).

### default (`application/problem+json`)

Any other problem, e.g. `internal_error`.

## Example

```bash title="cURL"
curl -X GET "https://passport.kabin.sh/api/v1/batteries/{batteryId}/condition" \
  -H "Authorization: Bearer $BATTERYPASS_API_KEY"
```
