---
sidebar:
  hidden: true
title: roboto.domain.orgs.org_operations
---
## Module Contents

### BindEmailDomainRequest

```python
class roboto.domain.orgs.org_operations.BindEmailDomainRequest(/, **data: Any)
```

`from roboto.domain.orgs import BindEmailDomainRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L84-L88)

Bases: `pydantic.BaseModel`

Request payload to bind an email domain to an organization.

**Parameters**

- **data** (`Any`)

**Attributes**

- **BindEmailDomainRequest.email_domain** (`str`): Email domain to bind (e.g., "example.com").

### CreateOrgRequest

```python
class roboto.domain.orgs.org_operations.CreateOrgRequest(/, **data: Any)
```

`from roboto.domain.orgs import CreateOrgRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L15-L25)

Bases: `pydantic.BaseModel`

Request payload to create an organization.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateOrgRequest.bind_email_domain** (`bool`) = `False`: Whether to automatically bind the creator's email domain to this organization.
- **CreateOrgRequest.data_region** (`roboto.regionalization.RobotoRegion`): AWS region where the organization's data will be stored.
- **CreateOrgRequest.name** (`str`): Unique name for the organization.

### InviteUserRequest

```python
class roboto.domain.orgs.org_operations.InviteUserRequest(/, **data: Any)
```

`from roboto.domain.orgs import InviteUserRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L91-L95)

Bases: `pydantic.BaseModel`

Request payload to invite a user to an organization.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InviteUserRequest.invited_user_id** (`str`): Unique identifier for the user to invite.

### ModifyRoleForUserRequest

```python
class roboto.domain.orgs.org_operations.ModifyRoleForUserRequest(/, **data: Any)
```

`from roboto.domain.orgs import ModifyRoleForUserRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L70-L81)

Bases: `pydantic.BaseModel`

Request payload to modify the role for a user in an organization.

> **Deprecated since version Use**
>
> [`UpdateOrgUserRequest`](/reference/python-sdk/roboto/domain/orgs/org_operations#roboto.domain.orgs.org_operations.UpdateOrgUserRequest) instead.

**Parameters**

- **data** (`Any`)

**Attributes**

- **ModifyRoleForUserRequest.role_name** (`roboto.domain.orgs.org_records.OrgRoleName`): Role to assign to the user.
- **ModifyRoleForUserRequest.user_id** (`str`): Unique identifier for the user.

### OrgRecordUpdates

```python
class roboto.domain.orgs.org_operations.OrgRecordUpdates(/, **data: Any)
```

`from roboto.domain.orgs import OrgRecordUpdates`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L28-L35)

Bases: `pydantic.BaseModel`

Payload containing organization field updates.

**Parameters**

- **data** (`Any`)

**Attributes**

- **OrgRecordUpdates.name** (`str | None`) = `None`: Updated name for the organization.
- **OrgRecordUpdates.status** (`roboto.domain.orgs.org_records.OrgStatus | None`) = `None`: Updated status for the organization.

### RemoveUserFromOrgRequest

```python
class roboto.domain.orgs.org_operations.RemoveUserFromOrgRequest(/, **data: Any)
```

`from roboto.domain.orgs import RemoveUserFromOrgRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L62-L66)

Bases: `pydantic.BaseModel`

Request payload to remove a user from an organization.

**Parameters**

- **data** (`Any`)

**Attributes**

- **RemoveUserFromOrgRequest.user_id** (`str`): Unique identifier for the user to remove.

### UpdateOrgRequest

```python
class roboto.domain.orgs.org_operations.UpdateOrgRequest(/, **data: Any)
```

`from roboto.domain.orgs import UpdateOrgRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L38-L42)

Bases: `pydantic.BaseModel`

Request payload to update an organization.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateOrgRequest.updates** (`OrgRecordUpdates`): Organization field updates to apply.

### UpdateOrgUserRequest

```python
class roboto.domain.orgs.org_operations.UpdateOrgUserRequest(/, **data: Any)
```

`from roboto.domain.orgs import UpdateOrgUserRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L45-L59)

Bases: `pydantic.BaseModel`

Request payload to update an organization user's roles.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateOrgUserRequest.add_roles** (`list[roboto.domain.orgs.org_records.OrgRoleName] | None`) = `None`: Roles to add to the user.
- **UpdateOrgUserRequest.remove_roles** (`list[roboto.domain.orgs.org_records.OrgRoleName] | None`) = `None`: Roles to remove from the user.

#### UpdateOrgUserRequest.check_some_updates_present()

```python
def check_some_updates_present() -> UpdateOrgUserRequest
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/orgs/org_operations.py#L55-L59)

**Returns**

- `UpdateOrgUserRequest`
