File Instance

API endpoint that allows files to be viewed and edited. For information on uploading files via the API, see the documentation.

Filter fields

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

  • name -- Filter by file 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.

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/files/195511/
HTTP 200 OK Vary: Accept Content-Type: text/html; charset=utf-8 Allow: GET, PUT, DELETE, HEAD, OPTIONS, PATCH
{ "url": "https://de.localwiki.org/api/v4/files/195511/", "name": "syotaiji-picture-of-river-cliff-waterfall.jpg", "file": "https://de.localwiki.org/media/pages/files/xsm17xwvy127xwsj.jpg", "slug": "\u77f3\u725b\u8def", "region": "https://de.localwiki.org/api/v4/regions/2638/" }