Adds the specified roles to the account. The sender must be the account manager of the account to modify.

| JSON representation |
|---|
| ``` { "account": { object (`https://docs.cloud.google.com/universal-ledger/reference/rest/v1/Account#Entity`) }, "accountId": string, "roles": [ enum (`https://docs.cloud.google.com/universal-ledger/reference/rest/v1/Account#Role`) ] } ``` |

| Fields ||
|---|---|
| `account (deprecated)` | ``object (`https://docs.cloud.google.com/universal-ledger/reference/rest/v1/Account#Entity`)`` > [!WARNING] > This item is deprecated! Optional. Deprecated: Use `https://docs.cloud.google.com/universal-ledger/reference/rest/v1/AddRoles#FIELDS.account_id` instead. The ID of the account to be modified. |
| `accountId` | `string` Optional. The ID of the account to be modified. One of `account` or `accountId` must be specified. The value is limited to 60 characters. |
| `roles[]` | ``enum (`https://docs.cloud.google.com/universal-ledger/reference/rest/v1/Account#Role`)`` Required. The roles to be added. |