Uploads

Initialise an upload for the authenticated user — allocate Site + presigned PUT URLs

post/sites/uploads/init

Request

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

Request body

subdomainstring required

Requested subdomain (server may disambiguate with -N suffix on collision)

Example request

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

Response

Init successful — files should be PUT to the returned URLs

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.