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.
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.
uploadTicketX-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.
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/zipbinaryAccepted as a draft.
application/json- 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.
curl -X POST 'https://drop.example.com/api/v1/uploads'{ "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.
Disable or re-enable a user PATCH
Admin only. On the control plane a disabled user's sessions stop at once on the replica that handled this call and within 30 seconds on the others, which is how long each caches a user row; on drop hosts they stop within 30 seconds too, and a cookie issued before the disable stays refused after a re-enable. Their tokens stop at once everywhere, because a bearer token reads the user row on every request. An admin cannot disable themselves, and the last enabled admin cannot be disabled by anyone.
Wipe a collection DELETE
Owner, editor or admin. Every document in the collection is deleted in one transaction, every open stream on it is reset, and the wipe is an audit event.