Upload a site (admin)
POST/api/sites
Manual upload from the portal. Same multipart/form-data body as
POST /ingest/sites. Requires an admin principal.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”multipart/form-data with a JSON meta part and either a bundle
(a .tar.gz or .zip archive containing an index.html) or an
index (a single self-contained HTML document). The archive format is
detected from its magic bytes, not the field or file name.
object
The meta part of a publish request.
object
A .tar.gz or .zip archive containing a top-level index.html.
For .zip, if every file lives under one common top-level directory
(e.g. a zipped folder site/index.html), that directory is stripped
so index.html lands at the site root.
A single self-contained HTML document (becomes index.html).
Responses
Section titled “Responses”The published site.
object
Invalid request (bad path, malformed body, or missing content).
object
Missing or invalid credentials.
object
Authenticated, but not permitted for this target/capability.