Skip to Content
dropshelf
REST API

Create a drop from a zip

Answers 202 as soon as the rows exist; the upload runs in the background. Poll getDeploy with wait= for the outcome. deploy.source is web for a session and api for a bearer token.

POST
/api/v1/drops

Answers 202 as soon as the rows exist; the upload runs in the background. Poll getDeploy with wait= for the outcome. deploy.source is web for a session and api for a bearer token.

Authorization

headerAuthorizationBearer <token>

A personal access token, odp_ followed by 43 characters. Create one in the dashboard.

Query Parameters

type*"site"

Required. The drop's type, fixed from now on; the instance's types are in getInstance.

Value in"site"
slug?string

Optional. 1 to 53 lowercase letters, digits and hyphens, not starting or ending with a hyphen and without --. Generated when omitted.

retention?string

Optional. 1d to the instance maximum (365d by default), or forever when the instance allows it. Defaults to the instance default.

visibility?string

Optional. public (default), restricted, or private (the owner and admins alone).

Value in"public""restricted""private"
name?string

Optional. The drop's name, at most 120 characters. Absent, the page's title names the drop when the version goes live; present and blank, the drop has no name. A description is set with updateDrop once the drop exists.

publish?boolean

Optional. false uploads a draft: the deploy finishes as ready and nothing changes for visitors until it is published.

note?string

Optional. One line, at most 200 characters, on what this version changes and which comment or request it answers.

Lengthlength <= 200

Request Body

The version as a zip archive (its top level is the site root), or, as application/json, a Plan of the files that changed since its base. A plan answers 201 with PlanAccepted, or 200 with {"unchanged": true} when it changes nothing; send the files it needs and call commitPlan.

  1. body

The files that differ from base.

base?string

The version this write was built on. Required once the drop has been live.

changes*

Every changed path. null removes it; any other path stays as base has it.

name?string

A new drop only: its name; blank for none.

note?string

One line on what the version changes, at most 200 characters.

publish?boolean

Go live when committed, if nothing was published since base. Defaults to true for a new drop, false otherwise.

retention?string

A new drop only.

slug?string

A new drop only: its address, generated when omitted.

type?string

A new drop only: its type.

visibility?string

A new drop only.

Response Body

A plan was recorded (a JSON body). The query parameters do not apply; the plan carries them.

application/json
  1. response
deploy*string

The planned deploy.

expiresAt*string

When an uncommitted plan is closed: ten minutes after it was made.

Formatdate-time
need*array<string>

Paths to send with sendPlanFile or sendPlanFiles before commitPlan.

slug*string

The drop.

Example Request
curl -X POST 'https://drop.example.com/api/v1/drops?type=site' \  -H 'Content-Type: application/json' \  -d '{  "changes": {    "property1": {},    "property2": {}  }}'
Example Response
{  "deploy": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "need": [    "string"  ],  "slug": "string"}

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