hostingaccount::set_suspended_url
Description
Set redirect URL for when a given hosting account is suspended
A suspended hosting account's website will redirect all requests to a predefined 'hosting account suspended' URL.
This will override, for a given hosting account, whatever the account-wide default may be as specified
through account::set_suspended_url.
Request details
-
Method
POST
-
URL
https://api.hostingreborn.com/hostingaccount/set_suspended_url/
Arguments
- key
- API key
- domain
- Hosting account domain name
- url
- Redirect URL to use
Responses
<?xml version="1.0" encoding="utf-8"?>
<success>true</success>
Exceptions
Examples
Set redirect url for test01.example.com to http://example.com/suspended/
POST /account/set_suspended_url/
key=acbd18db4cc2f85cedef654fccc4a4d8
&domain=http://test01.example.com
&url=http://example.com/suspended/
<?xml version="1.0" encoding="utf-8"?>
<success>true</success>
See also
-
hostingaccount::get_suspended_url
Get a hosting account's suspended redirect URL
-
account::get_suspended_url
Get default redirect URL for an account's suspended hosting accounts
-
account::set_suspended_url
Set default redirect URL for an account's suspended hosting accounts