JSON

Update JSON document

Changed on

Replaces document content; requires the owner token returned at creation or the management key

put/api/json/{ns}/{id}

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-Delivery-Mode, string

Ignored on update: republishing keeps the address mode (reported in deliveryNotice); change it with the hosting operation

X-Owner-Token, unknown

Owner token returned at creation

X-Manage-Key, unknown

Management key of this document

Request body

unknown required

Response

Document updated

JsonUpdateResponse required
id, string required
namespace, string required
link, string required

Primary URL returned for browser viewing and sharing

ownerLink, string required

API URL for programmatic access

sizeBytes, integer required
updatedAt, string date-time required
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: JSON 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

    2 more changes in this revision