Previews

Stage an in-place edit of a live preview (add/replace/remove files)

post/previews/{id}/revisions/init

Request

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

Path parameters

idstring required

Request body

deletesstring[]

Relative paths to remove from the live preview.

Example request

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

Response

Revision staged — PUT upserts to the returned URLs

uploadBatchIdstring required
previewIdstring required
slugstring required

Server-assigned random preview name

expiresAtstring date-time required

Presigned upload URLs stop working at this time

Changes

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