Page Instance

API endpoint that allows pages to be viewed and edited.

Tags

Tags can be found in the tags attribute. You can update just the tags by issuing a PATCH here with just the tags attribute present, e.g.:

{"tags": ["park", "fun"]}

To update a page and not change the tags, simply exclude the tags field from your update.

To delete all tags from the page, issue a request with tags set to [].

Filter fields

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

  • name -- Filter by name, exact.
  • slug -- Filter by page slug. Supports the standard lookup types
  • region -- Filter by region. Allows for chained filtering on all of the filters available on the region resource, e.g. region__slug.
  • tags -- Filter by tag. E.g. tags=park for all pages tagged 'park', or tags=park,wifi for all pages tagged 'park' and also tagged 'wifi'.

Ordering

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

  • slug

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

GET /api/v4/pages/950/
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/pages/950/", "name": "Wiki Community/Wiki Fatigue", "slug": "wiki community/wiki fatigue", "content": "<p>\n<strong>Wiki Fatigue</strong> can be recognized by several syndromes: \n</p>\n\n <ol>\n\n <li>\n<p>\nFear of what you will see next in <a href=\"Recent%20Changes\">Recent Changes</a> rather than looking forward to new developments. \n</p>\n</li>\n <li>\n<p>\nAssuming that new posters are actively trying to damage the wiki rather than assuming that they just need help and guidance. \n</p>\n</li>\n <li>\n<p>\nSeeing <a href=\"sockpuppets\">sockpuppets</a> behind every other post. \n</p>\n</li>\n <li>\n<p>\nFantasies about removing all of the edits you've ever made and all the <a href=\"PhotoRequest\">photos</a> you've uploaded. \n</p>\n</li>\n <li>\n<p>\nUrge to publicly identify posters like <a href=\"Users/MyNameDoesntMatter\">MyNameDoesntMatter</a> with their real name. \n</p>\n</li>\n <li>\n<p>\nLonging for a good revert war as opposed to more recent dramas. \n</p>\n</li>\n <li>\n<p>\nWanting to create a pseudonymous account and stoop below the lowest common denominator. \n</p>\n</li>\n\n </ol>\n\n\n<p>\nIf you experience any of these syndromes it is time to take a wiki vacation. \n</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }