Url Rules

Get redirect rule by id

Returns one of a site's URL rules.

get/api/sites/multiscreen/site/{site_name}/urlrules/{id}

Request

  • Base URL
    https://api.duda.co
  • URL
    https://api.duda.co/api/sites/multiscreen/site/{site_name}/urlrules/{id}
  • Auth
    HTTP basic

Path parameters

site_namestring required

The site's unique name (its ID), returned when the site is created.

idstring required

Response

OK

idstring

Identifier of redirect rule for referencing single object

response_codeinteger

Http response status code

sourcestring

Source path of the redirect

targetstring

Target path of the redirect

Example response

{
  "response_code": 301,
  "source": " 'missing-page', 'old-page' ",
  "target": " 'home', 'https://google.com' "
}

Changes

No recorded changes to this operation across all 1 revision of this API.