Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can change your account URL by sending the POST request to the following URL: /account/url.

Permission to run the request: Account Owner, Administrator. 

 

Request Headers

ParameterDescription
X-Auth-Account-Url (required)Base URL of the account, e.g. http://myaccount.ispringlearn.com
X-Auth-Email (required)Administrator /Publisher e-mail address.
X-Auth-Password (required)Administrator /Publisher password.
X-Account-Url (required)New URL for your account.

After the request has been completed, the system returns the response with Code 200.

 

Possible Response Codes

CodeTextDescription
403Permission deniedYou have no permission to get the account address. Only Account Owner and Administrator have permission to send the request.
403Url is busyThe specified account URL is already used for another account.
403Url is internalThe specified account URL is reserved for internal system usage.
400Bad RequestThe system failed to process the request, because it did not contain all necessary parameters.
200OkThe account URL has been changed.

 

Sample Request

Code Block
languagexml
POST /account/url HTTP/1.1


Host: api.ispringonline.com


X-Auth-Account-Url: http://myaccount.
ispringonline
ispringlearn.com


X-Auth-Email: email@email.com


X-Auth-Password: password


X-Account-Url: http://myaccount1.
ispringonline
ispringlearn.com

 

Sample Response

Code Block
languagexml
HTTP/1.1
 
 200 OK

Server:

nginx
Connection: close