Function /domain/redirect/set
Function invocation
https://json.aftermarket.pl/domain/redirect/set
Function description
Set domain redirection settings.
Input parameters
This function takes the following input parameters:
Parameter | Type | Required | Default value | Description |
---|---|---|---|---|
string | "" | Domain name (deprecated, please use 'name' parameter) | ||
name | string | YES | Domain name | |
type | string | YES | Domain redirection type (one of 'none', 'direct', 'direct301', 'direct302', 'indirect', 'ip') | |
url | string | "" | Redirection address (required for 'direct', 'direct301', 'direct302', 'indirect', 'ip') |
Return value
Operation result (boolean value).