Skip to main content
PATCH
/
v1
/
smart-account
/
accounts
Update Account
curl --request PATCH \
  --url https://api.openxswitch.com/v1/smart-account/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Sandbox Account",
  "isActive": true,
  "enableAPIWithdrawal": true,
  "enableDashboardWithdrawal": true
}
'
{
  "success": true,
  "data": {
    "id": "47900010-7a2f-487e-9d38-3fd790fc13dc",
    "name": "OX App",
    "type": "SETTLEMENT",
    "state": "LIVE",
    "environment": "mainnet",
    "evmDetails": {
      "address": "0x1234567890123456789012345678901234567890",
      "refId": "d34e1fa1-5313-4909-a707-a6c8c2bc9578"
    },
    "solanaDetails": {
      "address": "0x1234567890123456789012345678901234567890",
      "refId": "d34e1fa1-5313-4909-a707-a6c8c2bc9578"
    },
    "enableAPIWithdrawal": true,
    "enableDashboardWithdrawal": true,
    "workspaceId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "createdAt": "2025-04-02T17:20:42.160Z",
    "updatedAt": "2025-04-02T17:20:42.160Z",
    "owners": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.openxswitch.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
accountId
string
required

Account ID

Example:

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

name
string

Account name

Example:

"Sandbox Account"

isActive
boolean

The status of the account

enableAPIWithdrawal
boolean

Enable API withdrawal

Example:

true

enableDashboardWithdrawal
boolean

Enable dashboard withdrawal

Example:

true

Response

success
boolean
required
Example:

true

data
object
required