## Patch Account By ID `AccountPatchAccountByIdResponse v1().accounts().patchAccountById(AccountPatchAccountByIdParamsparams = AccountPatchAccountByIdParams.none(), RequestOptionsrequestOptions = RequestOptions.none())` **patch** `/v1/accounts/{account_id}` Update account risk settings ### Parameters - `AccountPatchAccountByIdParams params` - `Optional accountId` - `Optional risk` Risk settings for the account ### Returns - `class AccountPatchAccountByIdResponse:` - `AccountSettings data` - `Optional risk` Risk settings for the account - `Optional maxNotional` The maximum notional value available to the account ### Example ```java package com.clear_street.api.example; import com.clear_street.api.client.ClearStreetClient; import com.clear_street.api.client.okhttp.ClearStreetOkHttpClient; import com.clear_street.api.models.v1.accounts.AccountPatchAccountByIdParams; import com.clear_street.api.models.v1.accounts.AccountPatchAccountByIdResponse; public final class Main { private Main() {} public static void main(String[] args) { ClearStreetClient client = ClearStreetOkHttpClient.builder() .fromEnv() .apiKey("My API Key") .build(); AccountPatchAccountByIdResponse response = client.v1().accounts().patchAccountById(0L); } } ``` #### Response ```json { "data": { "risk": { "max_notional": "5000000.00" } }, "error": null, "metadata": { "request_id": "c8f3e4a5-b2c3-5d4e-9f0a-6b7c8d9e0f1a" } } ```