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

### CreateUserRequest

```python
class roboto.domain.users.operations.CreateUserRequest(/, **data: Any)
```

`from roboto import CreateUserRequest`

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

Bases: `pydantic.BaseModel`

Request payload to create a new user.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateUserRequest.default_notification_channels** (`list[roboto.notifications.NotificationChannel] | None`): Default notification channels to enable for the user.
- **CreateUserRequest.default_notification_types** (`list[roboto.notifications.NotificationType] | None`): Default notification types to enable for the user.
- **CreateUserRequest.is_service_user** (`bool`) = `False`: Whether this is a service user for automated operations.
- **CreateUserRequest.is_system_user** (`bool`) = `False`: Whether this is a system user for internal platform operations.
- **CreateUserRequest.name** (`str | None`) = `None`: Human-readable display name for the user.
- **CreateUserRequest.picture_url** (`str | None`) = `None`: URL to the user's profile picture.
- **CreateUserRequest.user_id** (`str`): Unique identifier for the user, typically an email address.

### UpdateUserRequest

```python
class roboto.domain.users.operations.UpdateUserRequest(/, **data: Any)
```

`from roboto import UpdateUserRequest`

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

Bases: `pydantic.BaseModel`

Request payload to update an existing user.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateUserRequest.name** (`str | None`) = `None`: Updated display name for the user.
- **UpdateUserRequest.notification_channels_enabled** (`dict[roboto.notifications.NotificationChannel, bool] | None`) = `None`: Updated notification channel preferences.
- **UpdateUserRequest.notification_types_enabled** (`dict[roboto.notifications.NotificationType, bool] | None`) = `None`: Updated notification type preferences.
- **UpdateUserRequest.picture_url** (`str | None`) = `None`: Updated URL to the user's profile picture.

#### UpdateUserRequest.validate_non_empty_string()

```python
@classmethod
def validate_non_empty_string(
    value: Optional[str],
    info: pydantic.ValidationInfo,
) -> Optional[str]
```

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

**Parameters**

- **value** (`Optional[str]`)
- **info** (`pydantic.ValidationInfo`)

**Returns**

- `Optional[str]`
