User.Edit
Edits a user with the given information. Only the values passed are updated, the other values remain the same.
Parameters and required information
Here's a list of all the parameters you'll need to pass to the User.Edit method. All of the parameters are required unless otherwise noted.
SessionKey- The session key obtained from User.Login
UserID- The ID of the user you want to edit
Password- not required
FirstName- not required
LastName- not required
Email- not required
Address1- not required
Address2- not required
City- not required
State- not required
Zip- not required
Country- not required
Return Codes
Success
Status: success- Returns the updated user.
Status: fail- The call was not successful. Either the session has expired or the XML was not formatted correctly.
Error
-
5002: Authentication Failure
- No active session exists with this session key and developer account id. The user session has expired and the user has to to log on again.
-
101: The USERID attribute is required in the USER.EDIT function
- The USERID was not passed along.
-
505: Restricted - This user is not authorized to modify users
- This user is not authorized to modify a user.
HTTP POST
<?xml version="1.0" encoding="utf-8"?> <request> <sessionkey>string</sessionkey> <password>string</password> <firstname>string</firstname> <lastname>string</lastname> <email>string</email> <address1>string</address1> <address2>string</address2> <city>string</city> <state>string</state> <zip>string</zip> <country>string</country> </request>
<?xml version="1.0" encoding="utf-8"?> <mediasilo_response method="User.Create" status="success"> <user> <id>integer</id> <username>string</username> <password>string</password> <firstname>string</firstname> <lastname>string</lastname> <email>string</email> <address1>string</address1> <city>string</city> <state>string</state> <zip>string</zip> </user> </mediasilo_response>
