You can rename your account with the setAccountName method.

Permission to run the request: Account Owner, Administrator.

 

Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
accountName (required)stringNew name for the account.


 

Return Value

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

ParameterTypeDescription
successbool'True' if the account has been renamed.

Possible Errors

TextDescription
Permission deniedYou have no permissions to change the account name.
Wrong parametersThe system failed to process the request because it did not contain all necessary parameters.


 

Sample Call

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns="http://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <SetAccountNameRequest>
      <credentials>
        <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
        <email>email@email.com</email>
        <password>password</password>
      </credentials>
      <accountName>New account name</accountName>
    </SetAccountNameRequest>
  </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="http://ispringlearn.com/go/services/api/soap">
  <SOAP-ENV:Body>
    <SetAccountNameResult>
      <success>true</success>
    </SetAccountNameResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>