URL Redirection

Get

get

Retrieve URL Redirection Settings.

Query parameters
siteIdinteger · int32Optional

The Site ID for which to retrieve the URL RedirectionSettings. (optional)

Responses
200
Success
application/json; api-version=1.0
get
GET /api/URLRedirectionSettings HTTP/1.1
Host: 
Accept: */*
{
  "siteId": 1,
  "defaultAction": [
    "0 = DoNotRedirect",
    "1 = Redirect"
  ],
  "replicate": true,
  "urLs": [
    {
      "id": 1,
      "priority": 1,
      "enabled": true,
      "url": "text",
      "action": [
        "0 = DoNotRedirect",
        "1 = Redirect"
      ]
    }
  ]
}

Update

put

Modify URL Redirection Settings.

Query parameters
siteIdinteger · int32Optional

The Site ID for which to modify the URL Redirection Settings. (optional)

Body

Update the URL redirection settings

defaultActionstring · enumOptional

Redirect action type options

Possible values:
replicateboolean | nullableOptional

Whether the 'Replicate Settings' option is enabled or not.

Responses
204
No Content
put
PUT /api/URLRedirectionSettings HTTP/1.1
Host: 
Content-Type: application/json; api-version=1.0
Accept: */*
Content-Length: 71

{
  "defaultAction": [
    "0 = DoNotRedirect",
    "1 = Redirect"
  ],
  "replicate": true
}

No content

Last updated

Was this helpful?