Updating User Profile

You can update a user's profile with the updateUserProfile method.

Request Headers

Parameter Type Description
credentials (required) credentials Read the description of the Credentials object.
userId (required) string ID of the user, which profile you want to update.
fields (required) array An array of objects with the following properties: name, value.
groups (optional) string[] An array of group IDs, to which a user will be added.

Return Value

After the request has been completed, the system returns an object with the following properties:

Parameter Type Description
success bool True, if the user's profile has been updated.
exceededGroup string[] An array of group IDs, to which a user hasn't been added, because of the exceeded number of users this group can contain.

Sample Call

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://new.webservice.namespace">
  <SOAP-ENV:Body>
    <ns1:UpdateUserProfileRequest>
      <ns1:credentials>
        <ns1:accountUrl>http://myaccount.ispringonline.com</ns1:accountUrl>
        <ns1:email>email@email.com</ns1:email>
        <ns1:password>password</ns1:password>
      </ns1:credentials>
      <ns1:userId>4</ns1:userId>
      <ns1:fields>
        <ns1:field>
          <ns1:name>first_name</ns1:name>
          <ns1:value>John</ns1:value>
        </ns1:field>
        <ns1:field>
          <ns1:name>email</ns1:name>
          <ns1:value>john@gmail.com</ns1:value>
        </ns1:field>
        <ns1:field>
          <ns1:name>last_name</ns1:name>
          <ns1:value>Smith</ns1:value>
        </ns1:field>
        <ns1:field>
          <ns1:name>phone</ns1:name>
          <ns1:value>1233123</ns1:value>
        </ns1:field>
        <ns1:field>
          <ns1:name>state</ns1:name>
          <ns1:value>Texas</ns1:value>
        </ns1:field>
        <ns1:field>
          <ns1:name>country_id</ns1:name>
          <ns1:value>1</ns1:value>
        </ns1:field>
        <ns1:field>
          <ns1:name>password</ns1:name>
          <ns1:value>1234</ns1:value>
        </ns1:field>
      </ns1:fields>
      <ns1:groups/>
    </ns1:UpdateUserProfileRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sample Response

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://new.webservice.namespace">
  <SOAP-ENV:Body>
    <ns1:UpdateUserProfileResult>
      <ns1:success>true</ns1:success>
    </ns1:UpdateUserProfileResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>