Rename a portfolio
This updates only the portfolio’s display name; it does not affect trading or balances.
Endpoint
PATCH /api/v1/portfolio/{portfolio_index}/name
Authentication
Device-key cookie or X-API-KEY header. The credential’s account owns the target portfolio,
and a pinned credential may only act on its own subaccount.
Returns
200 OKwith the updatedPortfolioBalanceResponse.400 Bad Requestif the name fails length or charset validation.404 Not Foundif the portfolio does not exist or does not belong to the account.409 Conflictif another portfolio in the same subaccount already uses this name.
Authorizations
Base64-encoded API key issued by POST /api/v1/api-keys.
Path Parameters
Index of the portfolio to rename
x >= 0Body
Response
Updated portfolio
Response for a portfolio balance query.
A system-generated unique identifier for an account.
x >= 0A unique identifier for a portfolio within a subaccount.
x >= 0A unique identifier for a subaccount within an account.
x >= 0Free cash balance in USDC, available for trading and withdrawal.
"1000.00"
User-facing display name. Defaults to "Main" for index 0 and "Portfolio N"
otherwise; renameable via PATCH /portfolio/{portfolio_index}/name.
"Main"
Lifecycle status of the portfolio (ACTIVE, IN_LIQUIDATION, or CLOSED).
ACTIVE, IN_LIQUIDATION, CLOSED