Skip to Content
dropshelf
REST API

Upload a site's zip with a ticket

Send the ticket from createUploadTicket in the X-Dropshelf-Upload header and the zip as the body. The upload is always a draft: it creates the drop or a new version of it without making it live, and the member publishes it with publishVersion (publish_version over MCP). Query parameters are ignored: the ticket decides the drop, and for a new one its retention and visibility. The ticket is spent by an accepted upload. An upload refused by the deploy rules (a deploy in progress, the drop limit, a rejected zip, a busy replica) gives it back for a retry until it expires; one refused because the member can no longer upload, because the drop changed since the ticket was issued, or because a new drop's name was taken since, spends it. Revoking the token that asked for the ticket does not revoke the ticket: it still expires within ten minutes and can only make a draft that token can no longer publish. Same answer as createDrop.

POST
/api/v1/uploads

Send the ticket from createUploadTicket in the X-Dropshelf-Upload header and the zip as the body. The upload is always a draft: it creates the drop or a new version of it without making it live, and the member publishes it with publishVersion (publish_version over MCP). Query parameters are ignored: the ticket decides the drop, and for a new one its retention and visibility. The ticket is spent by an accepted upload. An upload refused by the deploy rules (a deploy in progress, the drop limit, a rejected zip, a busy replica) gives it back for a retry until it expires; one refused because the member can no longer upload, because the drop changed since the ticket was issued, or because a new drop's name was taken since, spends it. Revoking the token that asked for the ticket does not revoke the ticket: it still expires within ten minutes and can only make a draft that token can no longer publish. Same answer as createDrop.

Authorization

uploadTicket
headerX-Dropshelf-Upload<token>

An upload ticket from createUploadTicket, odu_ followed by 43 characters: one upload, to one drop, as a draft, within ten minutes of being issued.

Request Body

The drop as a zip archive. Its top level is the site root, so index.html belongs there and not inside a folder.

body*fileapplication/zip
Formatbinary

Response Body

Accepted as a draft.

application/json
  1. response
deploy*
drop*

Present when the deploy is live, ready or superseded.

queries*array<>

The version's queries from _dropshelf/queries.yaml and their approvals; empty without the file.

Example Request
curl -X POST 'https://drop.example.com/api/v1/uploads'
Example Response
{  "deploy": {    "createdAt": "2019-08-24T14:15:22Z",    "drop": {      "createdAt": "2019-08-24T14:15:22Z",      "currentDeploy": {},      "description": "string",      "expiresAt": "2019-08-24T14:15:22Z",      "name": "string",      "owner": {        "email": "string",        "id": "string",        "name": "string"      },      "retention": "string",      "role": "owner",      "slug": "string",      "social": {        "bookmarkedByMe": true,        "comments": 0,        "likedByMe": true,        "likes": 0,        "openChangeRequests": 0      },      "type": "string",      "updatedAt": "2019-08-24T14:15:22Z",      "url": "string",      "visibility": "public",      "waitingVersion": {        "id": "string",        "version": 0      }    },    "error": "string",    "fileCount": 0,    "finishedAt": "2019-08-24T14:15:22Z",    "held": {      "changed": [        {          "change": "added",          "path": "string"        }      ],      "live": {        "at": "2019-08-24T14:15:22Z",        "by": "string",        "deploy": "string",        "note": "string",        "version": 0      },      "root": "string",      "rootGone": true,      "yours": [        "string"      ]    },    "id": "string",    "note": "string",    "source": "web",    "status": "planned",    "totalBytes": 0,    "version": 0  },  "drop": {    "createdAt": "2019-08-24T14:15:22Z",    "currentDeploy": {      "createdAt": "2019-08-24T14:15:22Z",      "drop": {},      "error": "string",      "fileCount": 0,      "finishedAt": "2019-08-24T14:15:22Z",      "held": {        "changed": [          {            "change": "added",            "path": "string"          }        ],        "live": {          "at": "2019-08-24T14:15:22Z",          "by": "string",          "deploy": "string",          "note": "string",          "version": 0        },        "root": "string",        "rootGone": true,        "yours": [          "string"        ]      },      "id": "string",      "note": "string",      "source": "web",      "status": "planned",      "totalBytes": 0,      "version": 0    },    "description": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "name": "string",    "owner": {      "email": "string",      "id": "string",      "name": "string"    },    "retention": "string",    "role": "owner",    "slug": "string",    "social": {      "bookmarkedByMe": true,      "comments": 0,      "likedByMe": true,      "likes": 0,      "openChangeRequests": 0    },    "type": "string",    "updatedAt": "2019-08-24T14:15:22Z",    "url": "string",    "visibility": "public",    "waitingVersion": {      "id": "string",      "version": 0    }  },  "queries": [    {      "boundTo": [        {          "id": "string",          "kind": "string",          "value": "string"        }      ],      "name": "string",      "source": "string",      "state": "approved"    }  ]}

Generated from dropshelf core at 6a548b2, 26 Nov 2026.