Updating User Profile

You can update a user's profile by sending the POST request with the XML data to the following URL: /user/<user_id>.

Request Headers

Parameter Description
X-Auth-Account-Url (required) Base URL of the account, e.g. http://myaccount.ispringonline.com
X-Auth-Email (required) Administrator/Publisher e-mail address.
X-Auth-Password (required) Administrator/Publisher password.
X-Fields-Xml (required) An XML that contains the values of the user profile fields. For extended reference go to Getting User Profile Fields.
X-Groups (optional) A list of group IDs, to which a user will be added.

After the request has been completed, the system returns the reponse with Code 200. The reponse may include the X-Exceeded-Groups header, which contains a comma-separated list of group IDs, to which a user cannot be added.

Possible Response Codes

Code Text Description
400 Bad Request The system failed to process the request, because it did not contain all necessary parameters.
200 Ok User's profile has been updated.

Sample Request

POST /user/4 HTTP/1.1
Host: api.ispringonline.com
X-Auth-Account-Url: http://myaccount.ispringonline.com
X-Auth-Email: email@email.com
X-Auth-Password: 1234
X-Fields-Xml: <fields><first_name>John</first_name><email>john@gmail.com</email>

Sample Response

HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Tue, 21 Feb 2012 13:52:50 GMT   
Content-Type: text/html; charset=utf-8 
Connection: close
Content-Length: 0