Knowledge Base: users.update

Method Type: POST
Required Parameters: api_key, user_token
Optional Parameters: username, fullname, email, bio, url

Required Parameters

api_key:    API token for your client.
user_token: The user’s token.

Optional Parameters

username:   New username and unique identifier. [string] (32 chars max)
email:      Users email [string]
fullname:   Users fullname. [string] (50 chars max)
bio:        Users bio. [string] (140 chars max)
url:        Users homepage. [string]

Usage

Simply send a HTTP POST request containing the above parameters in the body.

Response

On success: HTTP 200 response.
On failure: HTTP 400 response plus an array of errors.

Example Successful XML Response

<?xml version="1.0"?>
<response>
    <status code="0">OK</status>
    <api>api.users.update</api>
</response>

Example Unsuccessful XML Response

<?xml version="1.0"?>
<response>
    <status code="1">FAIL</status>
    <api>api.users.update</api>
    <errors>
        <fullname>Fullname should be less than 100 characters.</fullname>
        <url>URL supplied must be valid.</url>
    </errors>
</response>