Wallets

Update exchange wallet credentials

Updates only the supplied credential fields for an existing exchange wallet in the selected portfolio. Provide at least one non-null credential value; omitted fields remain unchanged, and a request containing only null values is rejected. Requires portfolio.wallets.update permission. OAuth token fields may be supplied only from an authorization flow controlled by the caller. Returns 204 with an empty body.

patch/v1/portfolios/{portfolioSlug}/wallets/{chainId}/{walletAddress}/credentials

Request

  • Base URL: https://api.tokenbooks.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.tokenbooks.io/v1/portfolios/{portfolioSlug}/wallets/{chainId}/{walletAddress}/credentials
  • Auth: API key in header x-api-key

Path parameters

chainIdstring required
walletAddressstring required
portfolioSlugstring required

Workspace-scoped portfolio slug

Request body

apiKeystring nullable

API key or RPC URL

secretstring nullable

API secret or explorer URL

uidstring nullable

Optional exchange uid

loginstring nullable

Optional exchange login

passwordstring nullable

Optional exchange password

privateKeystring nullable

Integration authentication private key. Never provide a wallet signing or spending key.

walletAddressstring nullable

Optional credential wallet address

accountIdstring nullable

Optional exchange subaccount identifier

tokenstring nullable

OAuth or bearer token. API-key callers may provide this when creating or updating a wallet only from an authorization flow they control.

refreshTokenstring nullable

OAuth refresh token. API-key callers may provide this when creating or updating a wallet only from an authorization flow they control.

tokenExpiresAtstring date-time nullable

OAuth token expiry timestamp. API-key callers may provide this when creating or updating a wallet only from an authorization flow they control.

Response

Wallet credentials updated.

Changes

No recorded changes to this operation across all 1 revision of this API.