Previews

Initialise a preview upload — allocate a random preview address + presigned PUT URLs

post/previews/uploads/init

Request

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

Request body

Example request

{
  "files": [
    {
      "name": "index.html",
      "size": 4827,
      "contentType": "text/html"
    }
  ]
}

Response

Init successful — files should be PUT 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.