Skip to main content
PATCH
/
wallet
/
{wallet_id}
Update wallet
curl --request PATCH \
  --url https://api.onswitch.xyz/wallet/{wallet_id} \
  --header 'Content-Type: application/json' \
  --header 'x-service-key: <api-key>' \
  --data '
{
  "callback_url": "https://your-app.com/webhook"
}
'
{
  "success": true,
  "message": "Wallet updated successfully",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "699a6555fd4cab59e6175f79",
    "name": "My Wallet",
    "address": {
      "Base": "0x1234567890123456789012345678901234567890",
      "Solana": "..."
    },
    "callback_url": "https://your-app.com/webhook"
  }
}

Authorizations

x-service-key
string
header
required

Service key for API authentication

Path Parameters

wallet_id
string
required

Unique identifier for the wallet

Pattern: ^[a-f0-9]{24}$

Body

application/json
callback_url
string<uri> | null

Webhook URL to receive wallet notifications.

Response

Wallet updated successfully

success
boolean
required
message
string
required
timestamp
string<date-time>
required
data
object
required