KV

Creates or updates a key in the store; max 1000 keys per store

put/api/kv/{ns}/{id}/{key}

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
key, string required

Headers

X-Delivery-Mode, string
X-Owner-Token, unknown

Owner token returned at creation

X-Manage-Key, unknown

Management key of this store

Request body

KvUpsertKeyRequest required
value, string required

New value for the key (max 1 MB)

Response

Key upserted

KvUpsertKeyResponse required
id, string required
namespace, string required
key, string required
sizeBytes, integer required
link, string required

Primary URL returned for browser viewing and sharing of this key

ownerLink, string required

API URL for programmatic access

visibilityNotice, string

Link access in words, e.g. 'Public: listed in the gallery and sitemap; search engines can index it.' (public html, site and file add an unlist hint), 'Public: anyone with the link. Not listed.' (public json, kv, json pages, json and html files), 'Private: not listed. Only via your unique private link.' or 'Password: link + password.'

listed, boolean required

Always false: KV is never listed in the gallery or sitemap.

managementLink, string nullable required
routingCohort, string required
deliveryMode, string nullable required
requestedDeliveryMode, string nullable required
effectiveDeliveryMode, string nullable required
deliveryModeMatched, boolean nullable required
access, 'public' | 'unlisted' | 'protected' required

public: html, site and file listed in gallery and sitemap. unlisted: private, not listed. protected: link + password.

modeLocked, boolean required
hostingVersion, integer nullable required
deliveryModeReason, string

Why this mode is in effect:'policy:subdomain-required', 'policy:mode-locked', 'policy:classic-link', 'policy:version-stale', 'policy:republish-keeps-mode', 'policy:custom-domain-attached' or 'policy:state-declared'. Absent when nothing applies.

deliveryNotice, string

Human-readable explanation of deliveryModeReason. Absent whenever deliveryModeReason is absent.

linkName, string nullable

Link name of this public page, site or file; null = its random link. Absent when link names are not available.

notices, PublishNotice[]

Advisories about the request or its result; omitted when none.

Changes

    • info

      added the optional property level to the response with the status

    • info

      added the optional property level to the response with the status

    • info

      added the optional property level to the response with the status

    3 more changes in this revision