Sites

Initialise an in-place edit — validate the upserts/deletes and return presigned PUT URLs for the upserts. Supersedes any revision still pending for the site.

post/sites/{id}/revisions/init

Request

  • Base URL: https://api.nippy.host
  • URL: https://api.nippy.host/sites/{id}/revisions/init
  • Auth: bearer (a scheme the document does not define)

Path parameters

idstring required

Site UUID

Request body

deletesstring[]

Relative paths to remove from the live site.

Example request

{
  "upserts": [
    {
      "name": "index.html",
      "size": 4827,
      "contentType": "text/html"
    }
  ],
  "deletes": [
    "old-page.html",
    "assets/unused.css"
  ]
}

Response

Revision accepted — PUT the upserts to the returned URLs, then finalize. files is empty for a pure-delete revision.

uploadBatchIdstring required
subdomainstring required

Subdomain the file will be served from. May differ from the requested value if disambiguation was applied.

expiresAtstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.