Skip to main content
PATCH
/
v1
/
accounts
/
{account_id}
/
wallets
/
{wallet_id}
Update Registered Wallet
curl --request PATCH \
  --url https://sandbox.api.rime.finance/v1/accounts/{account_id}/wallets/{wallet_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "is_primary": true
}'
{
  "id": "999e0123-e89b-12d3-a456-426614174004",
  "account_id": "123e4567-e89b-12d3-a456-426614174000",
  "chain": "polygon",
  "wallet_address": "0x1234567890abcdef1234567890abcdef12345678",
  "is_primary": false
}

Authorizations

Authorization
string
header
required

Bearer access token. Provide as a Authorization: Bearer <token> header.

Path Parameters

wallet_id
string<uuid>
required
account_id
string<uuid>
required

Body

application/json
is_primary
boolean | null

Whether this should be the primary wallet for the account.

Response

200 - application/json

Registered wallet updated successfully

id
string<uuid>

Unique identifier for the resource.

Example:

"123e4567-e89b-12d3-a456-426614174000"

chain
enum<string>
default:polygon

Blockchain network name. Currently only polygon is enabled.

Available options:
polygon
wallet_address
string

Blockchain address for this wallet.

Example:

"0x1234..."

is_primary
boolean

Whether this is the primary/default resource for the account. Only one resource per account can be primary.

Example:

true

created
string<date-time>

Timestamp when the resource was created.

Example:

"2024-01-15T10:30:00Z"

I