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

### CreateDeviceTypeRequest

```python
class roboto.domain.device_types.operations.CreateDeviceTypeRequest(/, **data: Any)
```

`from roboto import CreateDeviceTypeRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/device_types/operations.py#L15-L28)

Bases: `pydantic.BaseModel`

Request body for `POST /v1/device-types/create`, which creates a device type in the caller's org.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateDeviceTypeRequest.description** (`str | None`) = `None`: Free-text description of the device type.
- **CreateDeviceTypeRequest.metadata** (`dict[str, Any]`) = `None`: Initial key-value metadata pairs to associate with the device type.
- **CreateDeviceTypeRequest.name** (`str`): Name of the device type, unique within the org.
- **CreateDeviceTypeRequest.tags** (`list[str]`) = `None`: Initial tags to associate with the device type.

### UpdateDeviceTypeRequest

```python
class roboto.domain.device_types.operations.UpdateDeviceTypeRequest(/, **data: Any)
```

`from roboto import UpdateDeviceTypeRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/device_types/operations.py#L31-L46)

Bases: `pydantic.BaseModel`

Request body for `PUT /v1/device-types/id/<device_type_id>`.

Fields left at their defaults change nothing.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateDeviceTypeRequest.description** (`str | roboto.sentinels.NotSetType | None`): New description. `None` clears it.
- **UpdateDeviceTypeRequest.metadata_changeset** (`roboto.updates.MetadataChangeset | None`) = `None`: Metadata fields and tags to add, change, or remove.
- **UpdateDeviceTypeRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **UpdateDeviceTypeRequest.name** (`str | roboto.sentinels.NotSetType`): New name for the device type, unique within its org. Cannot be cleared.
