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/951/
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/951/", "name": "Documentation", "slug": "documentation", "content": "<p>\nHere are some good starting points to get you started in using any Wiki Spot wiki \u2014 both in creating the content of your wiki pages and bringing the people in your wiki together in a community. If you are completely new to the concept of a wiki, it might be a good idea to start by reading the <a href=\"Wiki%20Guide\">Wiki Guide</a> to get the basic idea. <a href=\"Wiki%20Guide\">Click here to read it</a>. \n</p>\n<h3>Editing a Wiki</h3>\n\n <ul><li>\n <a href=\"Help%20with%20Editing\">Help with Editing</a> \u2014 general information on editing pages on wikis. \n</li>\n <li>\n <a href=\"FAQ\">FAQ</a> \u2014 some frequently asked questions. Ask anything here! (Okay, almost anything...) \n</li>\n <li>\n <a href=\"Conway%20Wiki%20Guide\">Conway Wiki Guide</a> \u2014 a general-purpose guide to using and editing wikis. \n</li>\n <li>\n <a href=\"Building%20Community\">Building Community</a> \u2014 making a successful wiki is hard work! \n</li>\n\n </ul><h3>Wiki Administration</h3>\n\n <ul><li>\n <a href=\"Help%20for%20Wiki%20Administrators\">Help for Wiki Administrators</a> \u2014 help for administrators of wikis. \n</li>\n <li>\n <a href=\"Create%20a%20wiki\">Create a wiki</a> \u2014 creating a new wiki on Wiki Spot. \n</li>\n <li>\n <a href=\"Community%20Discussion\">Community Discussion</a> related to the Wiki Spot project. \n</li>\n</ul>", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }