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

### CreateLayoutRequest

```python
class roboto.domain.layouts.operations.CreateLayoutRequest(/, **data: Any)
```

`from roboto.domain.layouts import CreateLayoutRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/layouts/operations.py#L17-L34)

Bases: `pydantic.BaseModel`

Request payload to create a layout

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateLayoutRequest.accessibility** (`roboto.domain.layouts.record.LayoutAccessibility`) = `None`
- **CreateLayoutRequest.folder** (`str | None`) = `None`
- **CreateLayoutRequest.layout_definition** (`dict[str, Any]`) = `None`
- **CreateLayoutRequest.name** (`str`) = `None`
- **CreateLayoutRequest.schema_version** (`int`) = `None`
- **CreateLayoutRequest.tags** (`list[str]`) = `None`

### UpdateLayoutRequest

```python
class roboto.domain.layouts.operations.UpdateLayoutRequest(/, **data: Any)
```

`from roboto.domain.layouts import UpdateLayoutRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/layouts/operations.py#L37-L70)

Bases: `pydantic.BaseModel`

Request payload to update a layout

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateLayoutRequest.accessibility** (`roboto.domain.layouts.record.LayoutAccessibility | roboto.sentinels.NotSetType`) = `None`
- **UpdateLayoutRequest.folder** (`str | None | roboto.sentinels.NotSetType`) = `None`
- **UpdateLayoutRequest.layout_definition** (`dict[str, Any] | roboto.sentinels.NotSetType`) = `None`
- **UpdateLayoutRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **UpdateLayoutRequest.name** (`str | roboto.sentinels.NotSetType`) = `None`
- **UpdateLayoutRequest.schema_version** (`int | roboto.sentinels.NotSetType`) = `None`
- **UpdateLayoutRequest.tags** (`list[str] | roboto.sentinels.NotSetType`) = `None`

#### UpdateLayoutRequest.validate_schema_version_with_definition()

```python
def validate_schema_version_with_definition() -> UpdateLayoutRequest
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/layouts/operations.py#L67-L70)

**Returns**

- `UpdateLayoutRequest`
