You can change your account URL with the setAccountUrl method.

Permission to run the request: Account Owner, Administrator.

 

Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
accountUrl (required)stringNew URL of your account.


Return Value

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

ParameterTypeDescription
successboolTrue if the account URL has been changed.


Possible Errors

ErrorDescription
URL is busyThe given URL is already used for another account.
URL is internalThe given URL is used for internal services.
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>
    <SetAccountUrlRequest>
      <credentials>
        <accountUrl>http://myaccount.ispringlearn.com</accountUrl>
        <email>email@email.com</email>
        <password>password</password>
      </credentials>
      <accountUrl>http://myaccount2.ispringlearn.com</accountUrl>
    </SetAccountUrlRequest>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML


Sampe 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>
    <SetAccountUrlResult>
      <success>true</success>
    </SetAccountUrlResult>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XML