Update account
Core API
- Concepts
- Authentication
- Countries
- Users
- KYC
- Capabilities
- Terms of Service
- Files
- Assets
- Accounts
- External Accounts
- Transactions
- Webhooks
Widgets API
- Payment
Update account
Update an existing account.
PATCH
/
core
/
accounts
/
{accountId}
curl --request PATCH \
--url https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"label": "My BTC long-term"
}'
{
"account": {
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc",
"ownerId": "1e32fca3-23f7-40ed-bc1b-de10c790182d",
"label": "My BTC long-term",
"asset": "BTC",
"balance": {
"total": "0.0015",
"available": "0.0015"
},
"createdAt": "2024-06-01T00:00:00Z",
"updatedAt": "2024-07-15T00:00:00Z"
}
}
Authorizations
OAuth 2.0 authentication.
Path Parameters
The account id.
Body
application/json
The label of the account.
Maximum length:
140
Response
200
application/json
Account updated.
The id of the account.
The id of the user that owns the account.
The label of the account.
The asset in which the account is denominated.
The time at which the account was created.
The last time at which the account was updated.
curl --request PATCH \
--url https://api.enterprise.sandbox.uphold.com/core/accounts/{accountId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"label": "My BTC long-term"
}'
{
"account": {
"id": "555a99a1-620d-4431-a0ac-b43e1aad2bdc",
"ownerId": "1e32fca3-23f7-40ed-bc1b-de10c790182d",
"label": "My BTC long-term",
"asset": "BTC",
"balance": {
"total": "0.0015",
"available": "0.0015"
},
"createdAt": "2024-06-01T00:00:00Z",
"updatedAt": "2024-07-15T00:00:00Z"
}
}