---
sidebar:
  hidden: true
title: roboto.domain.devices.record
---
## Module Contents

### DeviceRecord

```python
class roboto.domain.devices.record.DeviceRecord(/, **data: Any)
```

`from roboto import DeviceRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/devices/record.py#L15-L67)

Bases: `pydantic.BaseModel`

Data record of a device, as the Roboto API returns it.

A device is a robot, upload station, or other non-human entity that interacts with Roboto on behalf of an organization. [`Device`](/docs/reference/python-sdk/roboto/domain/devices/device#roboto.domain.devices.device.Device) wraps this record with methods that act on the device, and exposes it as [`record`](/docs/reference/python-sdk/roboto/domain/devices/device#roboto.domain.devices.device.Device.record).

**Parameters**

- **data** (`Any`)

**Attributes**

- **DeviceRecord.created** (`datetime.datetime`): Time the device was created.

- **DeviceRecord.created_by** (`str`): Principal that created the device, as `<type>:<id>`, such as `user:<user_id>`.

- **DeviceRecord.custom_fields** (`dict[str, Any]`) = `None`: Values of the custom fields the organization defines for devices, keyed by field name.

  Every device custom field in the [`Ready`](/docs/reference/python-sdk/roboto/domain/custom_fields/record#roboto.domain.custom_fields.record.CustomFieldStatus.Ready) state appears as a key, mapped to `None` when the device has no value for it. Fields in any other state are absent, so the map is empty when no device custom field is in that state.

- **DeviceRecord.device_id** (`str`): ID the organization gave the device, such as a serial number, unique within the organization.

- **DeviceRecord.device_type_id** (`str | None`) = `None`: ID of the device type assigned to the device, beginning with `dt_`, or `None` if it has none.

- **DeviceRecord.metadata** (`dict[str, Any]`) = `None`: Key-value metadata on the device.

- **DeviceRecord.modified** (`datetime.datetime`): Time the device was last modified.

- **DeviceRecord.modified_by** (`str`): Principal that last modified the device, in the same `<type>:<id>` form as `created_by`.

- **DeviceRecord.org_id** (`str`): ID of the organization that owns the device.

- **DeviceRecord.tags** (`list[str]`) = `None`: Tags on the device.

- **DeviceRecord.universal_device_id** (`str | None`) = `None`: Unique ID of the device across all organizations, beginning with `dv_`.

  Fixed when the device is created. Roboto sets it; no request does. Pass this ID, not `device_id`, to [`device()`](/docs/reference/python-sdk/roboto/association#roboto.association.Association.device).
