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

### LayoutAccessibility

```python
class roboto.domain.layouts.record.LayoutAccessibility
```

`from roboto.domain.layouts import LayoutAccessibility`

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

Bases: `roboto.compat.StrEnum`

Accessibility of a layout: who can view it.

**Attributes**

- **LayoutAccessibility.Organization** = `'organization'`: Every member of the organization that owns the layout can view it.
- **LayoutAccessibility.User** = `'user'`: Only the user who created the layout and the organization's administrators can view it.

### LayoutRecord

```python
class roboto.domain.layouts.record.LayoutRecord(/, **data: Any)
```

`from roboto.domain.layouts import LayoutRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/layouts/record.py#L25-L89)

Bases: `pydantic.BaseModel`

Data record of a layout, as `GET /v1/layouts/id/{layout_id}` returns it.

`POST /v1/layouts/create`, `PUT /v1/layouts/id/{layout_id}`, `GET /v1/layouts/name/{layout_name}` and `GET /v1/layouts/` return it too.

A layout is a saved arrangement of visualizer panels and the signals each panel draws. Signals are matched by topic name and message path, so a layout holds no data and applies to any file with those topics.

**Parameters**

- **data** (`Any`)

**Attributes**

- **LayoutRecord.accessibility** (`LayoutAccessibility`): Who can view the layout. Defaults to `LayoutAccessibility.User`.

- **LayoutRecord.created** (`datetime.datetime`): Time the layout was created.

- **LayoutRecord.created_by** (`str`): ID of the user who created the layout.

  Only this user and the organization's administrators can update or delete the layout, and only this user can rename it.

- **LayoutRecord.folder** (`str | None`) = `None`: Name of the folder the layout is grouped under, or `None` if it is in no folder.

  A folder is a label shared by the layouts grouped under it, not a separate resource.

- **LayoutRecord.layout_definition** (`dict[str, Any]`): Panels of the layout and the signals each draws, as a JSON object in the format `schema_version` names.

- **LayoutRecord.layout_id** (`str`): Unique ID of the layout, beginning with `ly_`.

- **LayoutRecord.modified** (`datetime.datetime`): Time the layout was last modified.

- **LayoutRecord.modified_by** (`str`): ID of the user who last modified the layout.

- **LayoutRecord.name** (`str`): Human-readable name of the layout.

  A layout with `LayoutAccessibility.Organization` accessibility has a name unique within its organization, and one with `LayoutAccessibility.User` accessibility a name unique among its creator's `User` layouts. Roboto also rejects a `User` layout with the name of an `Organization` layout.

- **LayoutRecord.org_id** (`str`): ID of the organization that owns the layout.

- **LayoutRecord.revision** (`int`) = `0`: Number of times the layout has been updated: `0` when it is created, and one more for every update.

  A rename counts as an update. Send the revision you loaded as [`base_revision`](/docs/reference/python-sdk/roboto/domain/layouts/operations#roboto.domain.layouts.operations.UpdateLayoutRequest.base_revision) to have Roboto refuse an update if someone changed the layout since.

- **LayoutRecord.schema_version** (`int`): Version of the format that `layout_definition` follows.

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