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/1219/
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/1219/", "name": "Riddle Elephant Sanctuary", "slug": "riddle elephant sanctuary", "content": "<table>\n\t<tbody>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Location</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top;\">\n\t\t\t\t<p>\n\t\t\t\t\t233 Pumpkin Center Circle, Quitman, AR 72032</p>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Hours</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top;\">\n\t\t\t\t<p>\n\t\t\t\t\tOpen to public:\u00a01st Saturday of every month, 11:00 AM-3:00 PM</p>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Phone</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t(501) 589-3291</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Website</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t<a href=\"http://www.zazapizzaandsalad.com/\">http://www.elephantsanctuary.org/</a></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Owner(s)</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\tScott and Heidi Riddle</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: rgb(224, 224, 255);\">\n\t\t\t\t<strong>Established</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t1990</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"vertical-align: top; background-color: transparent;\">\n\t\t\t\t\u00a0</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<p>\n\tNot far from Conway, just outside Quitman, Arkansas, is the Riddle Elephant Sanctuary. Elephants in central Arkansas?! Yes, you read correctly.</p>\n<p>\n\tThis non-profit facility primarily exists as an old-folks-home for retired circus and zoo elephants, but is also a training facility for elephant husbandry, veterinary care, and scientific research. This facility has over 300 acres, and has both Asian and African elephants on site. The sanctuary is a non-profit, and has several different \"adoption\" programs by which one can donate to the provide for care/food/bedding for the elephants.</p>\n<p>\n\tThe sanctuary is open to the public on the first Saturday of every month from 11:00 AM until 3:00 PM. This provides an excellent opportunity for the general public to get close to this giant mammals.\u00a0</p>\n<p>\n\t<span class=\"image_frame image_frame_border\"><img src=\"_files/riddle.jpg\" style=\"width: 300px; height: 240px;\"><span style=\"width: 300px;\" class=\"image_caption\">Entrance to the Riddle Elephant Sanctuary</span></span><span class=\"image_frame image_frame_border\"><img src=\"_files/booperpeggy.jpg\" style=\"width: 357px; height: 240px;\"><span style=\"width: 357px;\" class=\"image_caption\">Booper and Peggy, two female Asian elephants</span></span></p>\n<p>\n\t\u00a0</p>\n", "region": "https://ja.localwiki.org/api/v4/regions/1/", "tags": [] }