Skip to Content
dropshelf
REST API

Make a version the live one

Owner, editor or admin. The version must be ready or superseded with its objects still present. The live version becomes superseded, the retention clock restarts, and the answer is the drop as it now stands. Refused while a deploy is pending, and when the version's bytes would take the owner past their storage quota. There is no body; a caller using the session cookie must still send Content-Type: application/json, because the CSRF check requires a declared media type on POST, PUT and PATCH.

POST
/api/v1/drops/{slug}/deploys/{id}/publish

Owner, editor or admin. The version must be ready or superseded with its objects still present. The live version becomes superseded, the retention clock restarts, and the answer is the drop as it now stands. Refused while a deploy is pending, and when the version's bytes would take the owner past their storage quota. There is no body; a caller using the session cookie must still send Content-Type: application/json, because the CSRF check requires a declared media type on POST, PUT and PATCH.

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

slug*string

The drop.

id*string

The deploy id from listVersions.

Query Parameters

force?boolean

Optional. true publishes a draft even though something was published after it was started, replacing that.

Response Body

The drop, now serving that version.

application/json
  1. response
createdAt*string
Formatdate-time
currentDeploy*|

null until the first deploy is live.

description*|

From the request or the page's meta description; null when it has none.

expiresAt*|

null when the retention is forever.

Formatdate-time
name*|

The drop's name, from the request or the page's title; null when it has none.

owner*
retention*string

Always whole days as Nd, or forever. Retention is stored and computed in whole days, so no finer value can appear here.

role*|

The caller's role on this drop; null for a member who sees a public drop with no grant. An admin's is what their ownership or grant gives them.

Value in"owner""editor""viewer"null
slug*string

The subdomain label.

social*
type*string

What kind of drop it is, fixed when it was created.

updatedAt*string
Formatdate-time
url*string

Where the drop is served.

visibility*string

public: every member. restricted: the owner, admins and the people added. private: the owner and admins alone; the people added keep their rows and no access meanwhile.

Value in"public""restricted""private"
waitingVersion*|

The version waiting to be made live: the newest ready version newer than the live one, or the newest ready version when nothing is live, never one purged or being purged. null when none waits.

Example Request
curl -X POST 'https://drop.example.com/api/v1/drops/string/deploys/string/publish'
Example Response
{  "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  }}

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