API Methods: users.editUser

Description

Edits the default information for a user


Authentication

This method requires authentication with 'write' permission.

API Version

Version 1&2

Required parameters

  • target_user_id:The user ID of the user to edit

Optional parameters

  • password:
    The user's password
  • email_address:
    The user's email address if it changed
  • username:
    The user's username if usernames are in use, OR
  • first_name:
    The user's first name if usernames are NOT in use
  • last_name:
    The user's last name if usernames are NOT in use
  • date_joined:
    The date the user joined the site, formatted according to RFC 822 standard or as a Unix time stamp
  • activated:
    a value of 1 to make the user's account active, 0 to de-activate
  • status:
    value of 1 to make the user's account a normal account, -1 suspended, -2 deleted
  • tier:
    The numeric ID of the tier to which the user belongs

Example response

<?xml version="1.0"?>
<response status="ok" time="Mon, 21 Apr 2008 13:50:31 -0500">
    <users count="1">
        <user>
            <user_id>1</user_id>
        </user>
    </events>
</response>