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/963/
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/963/", "name": "Quick Wiki Tips", "slug": "quick wiki tips", "content": "<ul><li>\n Add tips by changing the page \"Quick Wiki Tips\"!! \n</li>\n <li>\n Check out the <a href=\"Wanted%20Pages\">Wanted Pages</a> for a list of pages that have been linked but not yet created. \n</li>\n <li>\n For a full list of pages in the wiki, check <a href=\"All%20Pages\">All Pages</a>. \n</li>\n <li>\n <a href=\"Orphaned%20Pages\">Orphaned Pages</a> is a list of pages no pages link to (lonely little pages). \n</li>\n <li>\n <strong>Preview</strong> before you click \"Save Changes.\" Every save is backed up, so previewing avoids clutter. \n</li>\n <li>\n Want to keep a list of pages you like and see when they change easily? Then use <a href=\"Bookmarks\">Bookmarks</a>! \n</li>\n <li>\n Have <a href=\"http://www.mozilla.org/products/firefox/\">Firefox</a> or <a href=\"http://www.mozilla.org/products/mozilla1.x/\">Mozilla</a>? Then you should \n</li>\n <li>\n Have a large image for a page? Use <a href=\"http://wikispot.org/Help%20with%20Images\">thumbnails</a> for a smaller version and a snazzier layout. \n</li>\n <li>\n Pressing 'clear observed changes' in <a href=\"Recent%20Changes\">Recent Changes</a> will show you only changes since you last pressed 'clear observed changes' \n</li>\n <li>\n On <a href=\"Recent%20Changes\">Recent Changes</a>, use \"clear observed changes\" to keep on top of the amount of changes you see . \n</li>\n <li>\n You can see what edits a user has made by clicking the \"Info\" button on the user's page and then the \"User's Info\" tab. \n</li>\n <li>\n Check <a href=\"Site%20Organization\">Site Organization</a> for ways to help keep the wiki well-organized. \n</li>\n <li>\n Got a <strong><a href=\"photography\">camera</a></strong>? Help make the wiki beautiful by filling a <a href=\"Photo%20Requests\">photo request</a>. \n</li>\n <li>\n Do you know about the <tt>[[TableOfContents]]</tt> macro? Check <a href=\"Site%20Organization\">Site Organization</a> \n</li>\n <li>\n Please consider <a href=\"Donate\">donating</a> to help keep this project going strong. \n</li>\n <li>\n Want to keep a list of pages you like and see when they change easily? Then use <a href=\"Bookmarks\">Bookmarks</a>! \n</li>\n <li>\n Do you know how to add the <a href=\"Comments\">Comments</a> function to any page? \n</li>\n <li>\n Have <a href=\"http://www.mozilla.org/products/firefox/\">Firefox</a> or <a href=\"http://www.mozilla.org/products/mozilla1.x/\">Mozilla</a>? Then you should \n</li>\n <li>\n Have a large image for a page? Use <a href=\"http://wikispot.org/Help%20with%20Images\">Thumbnails</a> for a smaller version and a snazzier layout. \n</li>\n <li>\n Pressing 'clear observed changes' in <a href=\"Recent%20Changes\">Recent Changes</a> will show you only changes since you last pressed 'clear observed changes' \n</li>\n <li>\n If you edit a lot of pages, you may want to know about all of the <a href=\"http://wikispot.org/Help%20with%20Macros\">macros</a> that are at your disposal. \n</li>\n <li>\n Look at us grow! Your effort is really helpful to the Conway wiki! Thanks! :) \n</li>\n <li>\n Try <a href=\"http://c2.com/cgi/wiki?ExponentialBackoffEditing\">Backoff Editing</a> rather than starting an <a href=\"Edit%20War\">Edit War</a>. \n</li>\n <li>\n Please remember to attribute your comments when appropriate. Thanks! \n</li>\n <li>\n You can see what edits a user has made by clicking the \"Info\" button on the user's page and then the \"User's Info\" tab. \n</li>\n <li>\n Remember: We don't all share the same perspective! Let's keep the wiki useful for all members of the Conway community. \n</li>\n <li>\n The Conway Wiki spell check isn't so great. Most modern browsers (like <a href=\"http://www.google.com/chrome/\">Chrome</a>, <a href=\"http://getfirefox.com\">Firefox</a>, <a href=\"http://www.apple.com/safari/\">Safari</a>, and <a href=\"http://www.konqueror.org/\">Konqueror</a>) have built-in spell checkers to underline misspelled words. \n</li>\n <li>\n Spending too much time on the wiki? Engaging in pointless edit wars? Get out from behind the computer and <a href=\"Wiki%20World%20Travelers\">experience the rest of the world</a>! \n</li>\n <li>\n Work together with other editors on the <a href=\"Collaboration%20of%20the%20Month\">Collaboration of the Month</a>. \n</li>\n <li>\n The wiki is not a weapon. Please don't use it solely for the purpose of making negative comments about people or organizations. Conversely, don't use it to just praise stuff. The community benefits most when you include the good as well as the bad. \n</li>\n <li>\n Be kind to new editors! Help them and educate them. \n</li>\n <li>\n <a href=\"Talk%20Pages\">Talk Pages</a> has a list of pages that are discussing the content of other pages \n</li>\n <li>\n Are you feeling <a href=\"Message%20Envy\">Message Envy</a>? Make some helpful edits! \n</li>\n <li>\n If you create a new page, make sure that other pages link to it (otherwise no one will be able to find it) and make sure that it has links to other pages (so people can find related information). \n</li>\n <li>\n Read local media (such as the <a href=\"Log%20Cabin%20Democrat\">Log Cabin Democrat</a>, <a href=\"The%20Echo\">The Echo</a> and the <a href=\"Arkansas%20Democrat%20Gazette\">Arkansas Democrat Gazette</a>) and use the info to help keep the wiki up-to-date. \n</li>\n <li>\n I see you <a href=\"Procrastinating\">Procrastinating</a>. Go read the <strong><a href=\"To%20Do\">To Do List</a></strong>. \n</li>\n <li>\n Want to pretty up a page? Check out the tips on <a href=\"http://wikispot.org/Help%20with%20Editing\">Help with Editing</a>. \n</li>\n</ul>", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }