You can change your account URL with the setAccountUrl method.
Permission to run the request: Account Owner, Administrator.
Parameter | Type | Description |
---|---|---|
credentials (required) | credentials | Read the description of the Credentials object. |
accountUrl (required) | string | New URL of your account. |
After the request has been completed, the system returns an object with the following properties:
Parameter | Type | Description |
---|---|---|
success | bool | True if the account URL has been changed. |
Error | Description |
---|---|
URL is busy | The given URL is already used for another account. |
URL is internal | The given URL is used for internal services. |
Wrong parameters | The system failed to process the request because it did not contain all necessary parameters. |
<?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 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> |