Skip to main content
POST
/
accounts
/
remove-assets
Remove Assets from Account
curl --request POST \
  --url https://access.utgl.io/v1/accounts/remove-assets \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "5f2b5c7c-7f1c-4f9a-9a49-5f7f89d2b2c9",
  "asset": [
    "HKD",
    "USD",
    "BTC",
    "ETH",
    "BUSD",
    "USDT",
    "USDC"
  ]
}
'
{
  "id": "<string>",
  "xid": "<string>",
  "xmetadata": {},
  "name": "<string>",
  "accountNumber": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
accountId
string
required

The account id to remove the asset from

Example:

"5f2b5c7c-7f1c-4f9a-9a49-5f7f89d2b2c9"

asset
string[]

The assets to remove from the account

Example:
[
"HKD",
"USD",
"BTC",
"ETH",
"BUSD",
"USDT",
"USDC"
]

Response

Assets removed from account successfully

An account

id
string

Account id

xid
string

Account external id

xmetadata
object

Account metadata

name
string

Account name

accountNumber
string

Account Number

description
string

Account description