Page data

Read page data settings and usage

Changed on

Settings in effect, each list with its entry count and size, quota tier and usage. A publication that has not turned page data on answers declared:false with the default settings. notices: state-needs-subdomain while the page is on a brewpage.app/... address (give it its own address: PATCH /api/{type}/{ns}/{id}/hosting), state-needs-html while the page is not HTML.

get/api/{ns}/{id}/state

Request

  • Base URL
    https://brewpage.app
  • Auth
    • API key in header X-Owner-Token
    • or API key in header X-Manage-Key

Path parameters

ns, string required
id, string required

Headers

X-Owner-Token, unknown

Owner token returned at creation

X-Manage-Key, unknown

Management key of this publication

Response

Settings and usage

StateConfigResponse required
declared, boolean required

True when page data is turned on for this publication

config, StateSettings required

Settings in effect, every key spelled out (defaults when not turned on); a valid PATCH body as is

collections, StateCollectionUsage[] required

Every declared list and every other list holding entries or files, by name

usage, StateAmount required

Entries, files and their bytes stored on this publication

tier, 'anonymous' | 'account' required

Quota tier: account (publication of an active profile) or anonymous

caps, StateAmount required

Quota of this tier: at most this many entries, entry bytes, files and file bytes

alert, boolean required

True at 80% or more of the entry, entry size, file or file size quota

notices, PublishNotice[] required

Advisories about the request or the settings; empty when none

pageDataHint, 'form' | 'local' | 'game' | 'relay'

Page data would help this page or site: form (answers not saved), local (saves only in the visitor's browser), game (saved progress) or relay (sends input to an outside service); absent while page data is on or nothing suggests it

Changes

    • warning

      added the new relay enum value to the pageDataHint response property for the response status

    • warning

      added the new accounts enum value to the collections/items/write response property for the response status

    • warning

      added the new accounts enum value to the config/collections/additionalProperties/write response property for the response status

    2 more changes in this revision