cURL
curl --request PUT \ --url https://api.sandbox.nxos.io/v1/ledger/{ledger_key}/account/{account_key} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data '{ "default_asset_code": "<string>", "status": "ACTIVE", "metadata": {} }'
{ "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "account_ref": "<string>", "status": "ACTIVE", "default_asset_code": "<string>", "enabled_assets": [ { "asset_code": "<string>", "min_balance": "<string>", "max_balance": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ], "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
The Basic Authentication header. Format: "Basic {base64(orgID:apiKey)}"
The key of the ledger. Examples:
The key of the account. Examples:
The request has succeeded.
The response is of type object.
object