Pixelsilk API function to edit a user--requires the access-users permission
username: the user's username (for logging in)
emailAddress: the user's email address
firstName: the user's first name
lastName: the user's last name
password: the user's password (for logging in)
roles: the id's for the user's assigned roles
id: the user's id

The function updateUser returns void

C# Example:
string username = "userName";
string emailAddress = "user@domain.topDomain";
string firstName = "userFirstName";
string lastName = "userLastName";
string password = "userPassword";
Guid[] roles = <roles id collection>;
string id = "userId";
UpdateUser(username, emailAddress, firstName, lastName, password, roles, id);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/updateUser HTTP/1.1
HOST: www.example.com
Content-Length: 433
Content-Type: application/x-www-form-urlencoded
Cookie: auth=AE03E4ACC923...2DB863D21650

Request Data:
Unencoded Data:

Url-encoded Data:

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=200861216346...24290DCFF8D; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:

JavaScript Example:
Method Call:
pixelsilk2.updateUser(input, callback);

Input Object:

Returned Data:

Back to Users »