# create_upload

Source: https://dropshelf.ai/docs/reference/mcp/tools/drops/create_upload

Get a one-time ticket to upload a site you have built on disk with curl, instead of writing its files into write_drop_files.

Call this only when the site is finished and you are about to upload, never as a first step or before building: the ticket works for one upload and expires ten minutes after it is issued. Run the command in the answer from the site's folder; it leaves dotfiles such as .git and .env out. The upload is a draft, for a new drop too (write_drop_files puts a new drop live at once); then call publish_version with the slug and the version the upload answered to publish it. note says what the version changes; base, for a drop that has been live, is the version your files are built on. If you cannot run a shell, use write_drop_files instead.

**Changes data**

## Input [#input]

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `base` | string | no | for an existing drop that has been live: the version your files are built on, by its id or its number, the one you last wrote or read |
| `note` | string | yes | one line, at most 200 characters: what this version changes and which comment or request it answers |
| `retention` | string | no | for a new drop: whole days as Nd, or forever; the instance default when omitted |
| `slug` | string | yes | the drop to create, or an existing site you may edit (as its owner, an editor or an admin) to upload a new version of |
| `type` | string | no | for a new drop: its type, such as site; required to create one |
| `visibility` | string | no | for a new drop: public, restricted or private; public when omitted |

## Output [#output]

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `command` | string | yes | The shell command that uploads. Replace SITE_DIR with the folder holding the built site, index.html at its top. |
| `expiresAt` | string | yes | Ten minutes after the ticket was issued. |
| `header` | string | yes | Always X-Dropshelf-Upload. |
| `newDrop` | boolean | yes | Whether the upload will create the drop. |
| `next` | string | yes | What to do with the upload's answer. |
| `notApplied` | array of string | no | retention or visibility given for an existing drop, which an upload never changes. |
| `slug` | string | yes | The drop the ticket uploads to. |
| `ticket` | string | yes | The secret, sent in the header named by header. Works once, until expiresAt. |
| `uploadUrl` | string | yes | Where to POST the zip. |

<details>
<summary>The output as JSON Schema</summary>

```json
{
  "properties": {
    "command": {
      "description": "The shell command that uploads. Replace SITE_DIR with the folder holding the built site, index.html at its top.",
      "type": "string"
    },
    "expiresAt": {
      "description": "Ten minutes after the ticket was issued.",
      "type": "string"
    },
    "header": {
      "description": "Always X-Dropshelf-Upload.",
      "type": "string"
    },
    "newDrop": {
      "description": "Whether the upload will create the drop.",
      "type": "boolean"
    },
    "next": {
      "description": "What to do with the upload's answer.",
      "type": "string"
    },
    "notApplied": {
      "description": "retention or visibility given for an existing drop, which an upload never changes.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "slug": {
      "description": "The drop the ticket uploads to.",
      "type": "string"
    },
    "ticket": {
      "description": "The secret, sent in the header named by header. Works once, until expiresAt.",
      "type": "string"
    },
    "uploadUrl": {
      "description": "Where to POST the zip.",
      "type": "string"
    }
  },
  "required": [
    "ticket",
    "header",
    "uploadUrl",
    "slug",
    "newDrop",
    "expiresAt",
    "command",
    "next"
  ],
  "type": "object"
}
```

</details>

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