Redirect Instance

API endpoint that allows redirects to be viewed and edited.

Filter fields

You can filter the result set by providing the following query parameters:

  • source -- Filter by source slug. Supports the standard lookup types
  • destination -- Filter by destination page. Allows for chained filtering on all of the filters available on the page resource, e.g. destination__slug.
  • region -- Filter by region. Allows for chained filtering on all of the filters available on the region resource, e.g. region__slug.

Ordering

You can order the result set by providing the ordering query parameter with the value of one of:

  • source

You can reverse ordering by using the - sign, e.g. -source.

GET /api/v4/redirects/51/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, PUT, DELETE, HEAD, OPTIONS, PATCH
{ "url": "https://ja.localwiki.org/api/v4/redirects/51/", "source": "carytown burger and fries", "destination": "https://ja.localwiki.org/api/v4/pages/1495/", "region": "https://ja.localwiki.org/api/v4/regions/4/" }