## Patch Account By ID `client.V1.Accounts.PatchAccountByID(ctx, accountID, body) (*V1AccountPatchAccountByIDResponse, error)` **patch** `/v1/accounts/{account_id}` Update account risk settings ### Parameters - `accountID int64` - `body V1AccountPatchAccountByIDParams` - `Risk param.Field[RiskSettings]` Risk settings for the account ### Returns - `type V1AccountPatchAccountByIDResponse struct{…}` - `Data AccountSettings` - `Risk RiskSettings` Risk settings for the account - `MaxNotional string` The maximum notional value available to the account ### Example ```go package main import ( "context" "fmt" "github.com/clear-street/clear-street-go" "github.com/clear-street/clear-street-go/option" ) func main() { client := clearstreet.NewClient( option.WithAPIKey("My API Key"), ) response, err := client.V1.Accounts.PatchAccountByID( context.TODO(), 0, clearstreet.V1AccountPatchAccountByIDParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response) } ``` #### Response ```json { "data": { "risk": { "max_notional": "5000000.00" } }, "error": null, "metadata": { "request_id": "c8f3e4a5-b2c3-5d4e-9f0a-6b7c8d9e0f1a" } } ```