Update site
Changed onReplaces the multi-file site bundle (ZIP archive or individual files with paths). Requires the owner token returned at creation. Password is preserved as-is (not changed in this operation).
Request
- Base URLhttps://brewpage.app
- Auth
- API key in header X-Owner-Token
- or API key in header X-Manage-Key
Path parameters
Query parameters
Comma-separated tags; replace the stored tags (empty clears). Omit to keep them
Not part of the update contract: updates keep the original expiry.
Entry HTML file path (.html or .htm). Default: index.html, else the shallowest HTML file; a missing or non-HTML entry falls back to it and is reported in notices
Headers
Ignored on update: republishing keeps the address mode (reported in deliveryNotice); sites always stay on their own subdomain
Owner token returned at creation
Management key of this site
Request body
Code-only site update as a JSON body, the site's files stay: the text of lambda.js replaces the code (notice lambda-stored), null removes it (notice lambda-removed). Needs X-Owner-Token = a token of the profile that published the code (else notice lambda-needs-profile).
Response
Site updated
Unique 10-character alphanumeric site ID
Primary URL returned for browser viewing and sharing
API URL for programmatic access (info, update, delete)
Entry HTML file resolved from the upload (e.g. index.html)
Entry page title: <title>, else first heading or text; absent if none.
Publication outcome: code, action and optional reason. Action merged means an existing publication was returned instead of a new one.
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.'
true = listed in the gallery and sitemap now (public, no password, not hidden).
public: html, site and file listed in gallery and sitemap. unlisted: private, not listed. protected: link + password.
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.
Human-readable explanation of deliveryModeReason. Absent whenever deliveryModeReason is absent.
Link name of this public page, site or file; null = its random link. Absent when link names are not available.
Advisories about the request or its result; omitted when none.
Changes
- info
added the new optional request property
lambda - info
added
subschema #3to the request bodyanyOflist - info
added the media type
application/jsonto the request body
- info