Skip to main content

Update users

POST updateSubaccount

To update user's email, use updateSubaccount with the subaccountId from the createSubaccount response.

HTTP request

https://api.changelly.com/v2/#updateSubaccount

Request

Header parameters
NameTypeRequiredDescription
X-Api-KeystringtrueYour API key (SHA256 from Public Key)
X-Api-SignaturestringtrueThe query's serialized body signed by your private key according to the RSA-SHA256 method.

Body parameters

NameTypeRequiredDescription
jsonrpcstringtrueJSON-RPC version.
idstringtrueClient's custom ID.
methodstringtrueAPI method name.
paramsobjecttrueRequest parameters.

params object:

NameTypeRequiredDescription
subaccountIdstringtruesubaccountId from the createSubaccount response.
emailstringtrueUser's email address. Must be unique among all of your users.

Response

Sample response

application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": {
"subaccountId": "FhbRm-Ox"
}
}