---
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#L318-L327)

Bases: `pydantic.BaseModel`

Deprecated. Request body for `PUT /v1/orgs/subdomains` and `DELETE /v1/orgs/subdomains`.

Use [`bind_email_domain()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.bind_email_domain) and [`unbind_email_domain()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.unbind_email_domain) instead. `PUT` binds an email domain to the caller's organization, and `DELETE` unbinds it. Only organization administrators may send it. No SDK method sends it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **BindEmailDomainRequest.email_domain** (`str`): Email domain to bind or unbind, such as `example.com`.

### BindEmailDomainResponse

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

`from roboto.domain.orgs import BindEmailDomainResponse`

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

Bases: `pydantic.BaseModel`

Response body of [`start_email_domain_verification()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.start_email_domain_verification).

Says what became of a request to bind an email domain to an organization.

**Parameters**

- **data** (`Any`)

**Attributes**

- **BindEmailDomainResponse.email_domain** (`roboto.domain.orgs.org_records.OrgEmailDomainRecord | None`) = `None`: Record of the domain as the organization holds it, or `None` when the organization does not hold it.

- **BindEmailDomainResponse.outcome** (`EmailDomainBindingOutcome`): Outcome of the request: `EmailDomainBindingOutcome.Bound` or `EmailDomainBindingOutcome.VerificationStarted`.

  `Bound` when the organization holds the domain and needs no verification of it, and `VerificationStarted` when it has a verification of the domain in progress. An organization can hold a domain it has not verified, so `VerificationStarted` can come with `email_domain` set.

- **BindEmailDomainResponse.verification_challenge** (`roboto.domain.orgs.org_records.EmailDomainVerificationChallengeRecord | None`) = `None`: Record of the organization's verification of the domain, or `None` when none is in progress.

- **BindEmailDomainResponse.verification_txt_record** (`roboto.domain.orgs.org_records.EmailDomainVerificationTxtRecord | None`) = `None`: DNS TXT record to publish at the domain, or `None` unless this request started the verification.

### CreateOrgGroupRequest

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

`from roboto.domain.orgs import CreateOrgGroupRequest`

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

Bases: `pydantic.BaseModel`

Request payload to make a group of an organization's members.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateOrgGroupRequest.description** (`str | None`) = `None`: What the group is for.
- **CreateOrgGroupRequest.name** (`Annotated[str, pydantic.StringConstraints(strip_whitespace=True, min_length=1, max_length=120)]`): The group's name (1 to 120 characters), unique within the organization whatever its case.

### CreateOrgInviteRequest

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

`from roboto.domain.orgs import CreateOrgInviteRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`create()`](/docs/reference/python-sdk/roboto/domain/orgs/org_invite#roboto.domain.orgs.org_invite.OrgInvite.create).

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateOrgInviteRequest.built_in_role** (`roboto.domain.orgs.org_records.GuestOrMember | None`) = `None`: Built-in role the invited user gets by accepting an invite with the `user` role, or `None` for a member.

  `guest` also needs a Roboto deployment that decides access from Roboto's own tables alone and an organization whose `access_control_features` is on, and is refused with any other role. `member` with another role is ignored.

- **CreateOrgInviteRequest.role** (`roboto.domain.orgs.org_records.OrgRoleName`): Role the invited user gets by accepting.

  Only an organization owner or a Roboto administrator may invite someone as [`admin`](/docs/reference/python-sdk/roboto/domain/orgs/org_records#roboto.domain.orgs.org_records.OrgRoleName.admin). `owner` raises `RobotoInvalidRequestException`.

### 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#L25-L40)

Bases: `pydantic.BaseModel`

Request body for [`create()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.create).

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateOrgRequest.bind_email_domain** (`bool`) = `False`: Whether to bind the creator's email domain to the organization.

  People who sign up with an address at a bound domain join the organization. Where Roboto requires email domains to be verified, this starts a verification of the domain instead, and auto-join turns on when the verification completes. `CreateOrgResponse.email_domain_binding_outcome` reports what Roboto did.

- **CreateOrgRequest.data_region** (`roboto.regionalization.RobotoRegion`): Region where Roboto stores the organization's data.

- **CreateOrgRequest.name** (`str`): Human-readable name of the organization.

### CreateOrgResponse

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

`from roboto.domain.orgs import CreateOrgResponse`

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

Bases: [`roboto.domain.orgs.org_records.OrgRecord`](/docs/reference/python-sdk/roboto/domain/orgs/org_records#roboto.domain.orgs.org_records.OrgRecord)

Response body of [`create()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.create).

Holds the new organization's record, the outcome of binding the creator's email domain to it, and the DNS TXT record of any verification of that domain the request started.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateOrgResponse.email_domain_binding_outcome** (`EmailDomainBindingOutcome | None`) = `None`: Outcome of binding the creator's email domain to the organization.

  `None` if `CreateOrgRequest.bind_email_domain` was `False`.

- **CreateOrgResponse.verification_txt_record** (`roboto.domain.orgs.org_records.EmailDomainVerificationTxtRecord | None`) = `None`: DNS TXT record that completes the verification of the creator's email domain that the request started.

  `None` when the request started no verification, and on a retry with the same idempotency key, since Roboto shows the record once. An organization administrator can get a new record with [`new_email_domain_verification_record()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.new_email_domain_verification_record).

### CreateOrgRoleRequest

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

`from roboto.domain.orgs import CreateOrgRoleRequest`

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

Bases: `pydantic.BaseModel`

Request payload to define a role in an organization. Only an admin or owner of the organization may define one.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateOrgRoleRequest.description** (`str | None`) = `None`: What the role is for.
- **CreateOrgRoleRequest.name** (`Annotated[str, pydantic.StringConstraints(strip_whitespace=True, min_length=1, max_length=120)]`): The role's name (1 to 120 characters), unique within the organization whatever its case.
- **CreateOrgRoleRequest.switches** (`list[str]`) = `None`: The names of the switches the role turns on, such as `view_data`; every other switch is off. A name that is not a switch is refused, and the refusal lists every switch.

### EmailDomainBindingOutcome

```python
class roboto.domain.orgs.org_operations.EmailDomainBindingOutcome
```

`from roboto.domain.orgs import EmailDomainBindingOutcome`

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

Bases: `roboto.compat.StrEnum`

Outcome of a request to bind an email domain to an organization, at its creation or later.

**Attributes**

- **EmailDomainBindingOutcome.Bound** = `'bound'`: Roboto bound the domain to the organization, or the organization already held it.

- **EmailDomainBindingOutcome.DenyListed** = `'deny_listed'`: Roboto left the domain unbound, because it is on Roboto's list of domains that no organization may bind.

  The list includes public email providers' domains, such as `gmail.com`.

- **EmailDomainBindingOutcome.EmailNotProven** = `'email_not_proven'`: Unused. Roboto never returns this value.

  It is reserved for a domain left unbound, with no verification started, because Roboto has no confirmed email address for the organization's owner.

- **EmailDomainBindingOutcome.HeldByAnotherOrg** = `'held_by_another_org'`: Roboto left the domain unbound, because another organization holds it.

- **EmailDomainBindingOutcome.VerificationStarted** = `'verification_started'`: The organization has a verification of the domain in progress.

  The verification completes when the DNS TXT record Roboto issued for it is published at the domain, and an organization administrator asks Roboto to check it, in the Roboto web app or with [`check_email_domain_verification()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.check_email_domain_verification).

### EmailDomainVerificationChallengeResponse

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

`from roboto.domain.orgs import EmailDomainVerificationChallengeResponse`

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

Bases: `pydantic.BaseModel`

Response body of [`new_email_domain_verification_record()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.new_email_domain_verification_record).

Holds a verification of an email domain with a new DNS TXT record, which replaces the record of the organization's previous verification of the domain.

**Parameters**

- **data** (`Any`)

**Attributes**

- **EmailDomainVerificationChallengeResponse.verification_challenge** (`roboto.domain.orgs.org_records.EmailDomainVerificationChallengeRecord`): Record of the verification.
- **EmailDomainVerificationChallengeResponse.verification_txt_record** (`roboto.domain.orgs.org_records.EmailDomainVerificationTxtRecord`): DNS TXT record to publish at the domain. Roboto shows it only in this response.

### HeldRoleIds

```python
roboto.domain.orgs.org_operations.HeldRoleIds
```

`from roboto.domain.orgs import HeldRoleIds`

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

The IDs of the presets and roles an organization defined that one member or group holds, at most [`MAX_ROLES_HELD_DIRECTLY`](/docs/reference/python-sdk/roboto/domain/orgs/org_operations#roboto.domain.orgs.org_operations.MAX_ROLES_HELD_DIRECTLY) of them.

### 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#L403-L410)

Bases: `pydantic.BaseModel`

Deprecated. Request body for `POST /v1/orgs/invites`, which invites a user to the caller's organization.

Use [`invite_user()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.invite_user) instead.

**Parameters**

- **data** (`Any`)

**Attributes**

- **InviteUserRequest.invited_user_id** (`str`): ID of the user to invite, which for a person is their email address.

### MAX_ROLES_HELD_DIRECTLY

```python
roboto.domain.orgs.org_operations.MAX_ROLES_HELD_DIRECTLY: Final = 25
```

`from roboto.domain.orgs import MAX_ROLES_HELD_DIRECTLY`

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

The most presets and roles the organization defined that one member, or one group, may hold itself. Roles a member holds through groups do not count toward the member's limit.

### 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#L302-L315)

Bases: `pydantic.BaseModel`

Deprecated. Request body for `PUT /v1/orgs/roles` and `DELETE /v1/orgs/roles`.

Use [`add_role_for_user()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.add_role_for_user) and [`remove_role_from_user()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.remove_role_from_user) instead. `PUT` adds one role to a member of the caller's organization, and `DELETE` removes it. Only organization administrators may send it. No SDK method sends it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **ModifyRoleForUserRequest.role_name** (`roboto.domain.orgs.org_records.OrgRoleName`): Role to add or remove.
- **ModifyRoleForUserRequest.user_id** (`str`): ID of the user whose role changes, which for a person is their email address.

### OrgCreationEligibility

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

`from roboto.domain.orgs import OrgCreationEligibility`

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

Bases: `pydantic.BaseModel`

Response body of `GET /v1/orgs/creation/eligibility`.

Says whether the caller may create an organization now and, if not, what they can do next. No SDK method returns it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **OrgCreationEligibility.access_control_config_revision** (`str | None`) = `None`: Revision of the deployment's access control settings that Roboto answered from.

  `None` when the deployment records none.

- **OrgCreationEligibility.next_step** (`str`): Step the caller can take toward creating an organization.

  `create_org` when the caller may create an organization now. Otherwise what would let them: `bind_org_creation_grant` (confirm their approval in the Roboto web app), `submit_access_request`, `contact_deployment_administrator`, `use_web_app_session` (sign in to Roboto in a browser, without acting as another user), or `none` (nothing would; `reason` says why).

- **OrgCreationEligibility.reason** (`str | None`) = `None`: Reason for `next_step` when the step alone does not say, otherwise `None`.

  `owned_org_limit_reached` comes with `none`: the caller owns as many organizations as they may. `org_creation_grant_bound_to_other_cognito_user` comes with `contact_deployment_administrator`: the caller's approval is linked to a different sign-in.

- **OrgCreationEligibility.relaxation_document_revision** (`int | None`) = `None`: Revision of the list of exceptions to the deployment's access control rules that Roboto read for this answer.

  `None` when it read none.

- **OrgCreationEligibility.sign_up_policy** (`str | None`) = `None`: Sign-up policy of the Roboto deployment: `open`, `request_access`, or `closed`.

  `None` when the deployment sets none, which Roboto treats as `closed`.

### OrgEmailDomainChangeRefusal

```python
class roboto.domain.orgs.org_operations.OrgEmailDomainChangeRefusal
```

`from roboto.domain.orgs import OrgEmailDomainChangeRefusal`

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

Bases: `roboto.compat.StrEnum`

Reason Roboto refused to change an organization's email domain as asked.

[`RobotoOrgEmailDomainChangeRefusedException`](/docs/reference/python-sdk/roboto/exceptions/domain#roboto.exceptions.domain.RobotoOrgEmailDomainChangeRefusedException) carries it in its `reason`.

**Attributes**

- **OrgEmailDomainChangeRefusal.DnsRecordNotFound** = `'dns_record_not_found'`: Roboto did not find the verification's DNS TXT record at the domain.

  DNS changes can take up to an hour to appear.

- **OrgEmailDomainChangeRefusal.HeldByAnotherOrg** = `'held_by_another_org'`: Another organization holds the domain.

- **OrgEmailDomainChangeRefusal.NoVerificationChallenge** = `'no_verification_challenge'`: The organization has no unexpired verification of the domain.

  [`new_email_domain_verification_record()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.new_email_domain_verification_record) starts one with a new DNS TXT record.

- **OrgEmailDomainChangeRefusal.NotVerifiedOrProvisionallyApproved** = `'not_verified_or_provisionally_approved'`: The domain is neither verified nor provisionally approved by Roboto with an approval that has not expired.

  Turning auto-join on needs one of the two.

### 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#L139-L149)

Bases: `pydantic.BaseModel`

Changes to apply to an organization.

A field left `None` is unchanged. Carried in `UpdateOrgRequest.updates`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **OrgRecordUpdates.name** (`str | None`) = `None`: Human-readable name to give the organization.
- **OrgRecordUpdates.status** (`roboto.domain.orgs.org_records.OrgStatus | None`) = `None`: Status to set on the organization. Only a Roboto administrator may set it.

### 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#L292-L299)

Bases: `pydantic.BaseModel`

Deprecated. Request body for `DELETE /v1/orgs/users`, which removes a user from the caller's organization.

Use [`remove_user()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.remove_user) instead.

**Parameters**

- **data** (`Any`)

**Attributes**

- **RemoveUserFromOrgRequest.user_id** (`str`): ID of the user to remove, which for a person is their email address.

### SetOrgEmailDomainAutoJoinRequest

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

`from roboto.domain.orgs import SetOrgEmailDomainAutoJoinRequest`

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

Bases: `pydantic.BaseModel`

Request body for [`set_email_domain_auto_join()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.set_email_domain_auto_join).

**Parameters**

- **data** (`Any`)

**Attributes**

- **SetOrgEmailDomainAutoJoinRequest.enabled** (`bool`): Whether to turn auto-join on, so that people who sign up with an address at the domain join the organization.

### SetOrgGroupRolesRequest

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

`from roboto.domain.orgs import SetOrgGroupRolesRequest`

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

Bases: `pydantic.BaseModel`

Request body for `PUT /v1/orgs/id/<org_id>/groups/<group_id>/roles`: replace the roles a group of the organization holds. Only an admin or owner of the organization may.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SetOrgGroupRolesRequest.role_ids** (`HeldRoleIds`): Every preset and role the organization defined that the group holds afterwards; each one not listed is taken from it. Each member of the group holds them through it.

### SetOrgMemberRolesRequest

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

`from roboto.domain.orgs import SetOrgMemberRolesRequest`

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

Bases: `pydantic.BaseModel`

Request body for `PUT /v1/orgs/id/<org_id>/users/id/<user_id>/roles`: set a member's built-in role to guest or member, and replace the roles they hold themselves, in one change. Only an admin or owner of the organization may.

An admin or owner is made one, and stops being one, through the organization's membership update instead. Roles held through a group are set on the group.

**Parameters**

- **data** (`Any`)

**Attributes**

- **SetOrgMemberRolesRequest.built_in_role** (`roboto.domain.orgs.org_records.GuestOrMember | None`) = `None`: The member's new built-in role; `None` leaves it as it is. An admin, an owner or a service user is never made a guest.
- **SetOrgMemberRolesRequest.role_ids** (`HeldRoleIds`): Every preset and role the organization defined that the member holds themselves afterwards; each one not listed is taken from them.

### UpdateOrgGroupMembersRequest

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

`from roboto.domain.orgs import UpdateOrgGroupMembersRequest`

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

Bases: `pydantic.BaseModel`

Request payload to add members to an organization's group and remove members from it. Each added user must be a member of the organization.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateOrgGroupMembersRequest.add_user_ids** (`list[str]`) = `None`: User IDs to add to the group. Adding a member again changes nothing.
- **UpdateOrgGroupMembersRequest.remove_user_ids** (`list[str]`) = `None`: User IDs to remove from the group. Removing a user who is not a member changes nothing.

### UpdateOrgGroupRequest

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

`from roboto.domain.orgs import UpdateOrgGroupRequest`

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

Bases: `pydantic.BaseModel`

Request payload to rename an organization's group or change its description. Only the fields given change.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateOrgGroupRequest.description** (`str | roboto.sentinels.NotSetType | None`): The group's new description. Set to None to clear it.
- **UpdateOrgGroupRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **UpdateOrgGroupRequest.name** (`Annotated[str, pydantic.StringConstraints(strip_whitespace=True, min_length=1, max_length=120)] | roboto.sentinels.NotSetType`): The group's new name (1 to 120 characters), unique within the organization whatever its case.

### 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#L152-L159)

Bases: `pydantic.BaseModel`

Request body for [`update()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.update).

Only organization owners may send it.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateOrgRequest.updates** (`OrgRecordUpdates`): Changes to apply to the organization.

### UpdateOrgRoleRequest

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

`from roboto.domain.orgs import UpdateOrgRoleRequest`

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

Bases: `pydantic.BaseModel`

Request payload to rename a role an organization defined, or change its description or switches. Only the fields given change. A change of switches applies to every holder at their next request. Only an admin or owner of the organization may change a role, and nobody may change a preset.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateOrgRoleRequest.description** (`str | roboto.sentinels.NotSetType | None`): The role's new description. Set to None to clear it.
- **UpdateOrgRoleRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- **UpdateOrgRoleRequest.name** (`Annotated[str, pydantic.StringConstraints(strip_whitespace=True, min_length=1, max_length=120)] | roboto.sentinels.NotSetType`): The role's new name (1 to 120 characters), unique within the organization whatever its case.
- **UpdateOrgRoleRequest.switches** (`list[str] | roboto.sentinels.NotSetType`): The names of the switches the role turns on; every other switch is off.

### 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#L162-L182)

Bases: `pydantic.BaseModel`

Request body that adds roles to, or removes roles from, a member of an organization.

Sent by [`add_role_for_user()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.add_role_for_user) and [`remove_role_from_user()`](/docs/reference/python-sdk/roboto/domain/orgs/org#roboto.domain.orgs.org.Org.remove_role_from_user). Only organization administrators may send it. Building one that neither adds nor removes a role raises `pydantic.ValidationError`.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateOrgUserRequest.add_roles** (`list[roboto.domain.orgs.org_records.OrgRoleName] | None`) = `None`: Roles to grant the member. `None` grants none.
- **UpdateOrgUserRequest.remove_roles** (`list[roboto.domain.orgs.org_records.OrgRoleName] | None`) = `None`: Roles to revoke from the member. `None` revokes none.

#### 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#L177-L182)

Reject a request whose `add_roles` and `remove_roles` are both `None` or empty.

**Returns**

- `UpdateOrgUserRequest`
