Update user profile

PATCH https://api.cryptohopper.com/v1/user

Updates the user's name and address details. Only name, address1, address2, city, region, postal_code, country, country_nationality, phone and website are saved; other fields are ignored.

OAuth scope: user About scopes

Always send name: it is written on every call, so leaving it out clears the stored name. Address fields you leave out keep their current value.

Example request

curl -X PATCH "https://api.cryptohopper.com/v1/user" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Jane Doe","address1":"Main Street 1","city":"Amsterdam","postal_code":"1000 AA","phone":"+31600000000"}'

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Request body

JSON, model UserPATCH

FieldTypeRequiredDescription
namestringOptional
address1stringOptional
address2stringOptional
citystringOptional
regionstringOptional
countrystringOptional
country_nationalitystringOptional
postal_codestringOptional
phonestringOptional
websitestringOptional

Response

Example response (illustrative values)

{
    "data": "User profile has been updated."
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.