Skip to Content
dropshelf
REST API

Change retention, name or visibility

Any subset of the three. Each is written by its own field-scoped statement, so the request is safe to send while a deploy of the same drop is running. A rename frees the old name at once and both names appear in the answer's url. 404 is also the answer for a drop the caller may not see. A body naming type is refused whole: a drop's type is fixed when it is created.

PATCH
/api/v1/drops/{slug}

Any subset of the three. Each is written by its own field-scoped statement, so the request is safe to send while a deploy of the same drop is running. A rename frees the old name at once and both names appear in the answer's url. 404 is also the answer for a drop the caller may not see. A body naming type is refused whole: a drop's type is fixed when it is created.

Authorization

headerAuthorizationBearer <token>

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

Path Parameters

slug*string

The drop.

Request Body

The fields to change.

application/json
  1. body
description?string

At most 1000 characters, trimmed, newlines allowed; an empty string clears it. The owner, an admin or an editor.

name?string

At most 120 characters, trimmed; an empty string clears it. The owner, an admin or an editor.

retention?string

Whole days as Nd, from 1d to the instance maximum, or forever.

slug?string

A new name, under the same rules as the slug query parameter of createDrop. The old name is free as soon as the answer comes back.

visibility?string

Only the owner or an admin may change it. Private is the owner and admins alone.

Value in"public""restricted""private"

Response Body

The updated drop.

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 PATCH 'https://drop.example.com/api/v1/drops/string' \  -H 'Content-Type: application/json' \  -d '{}'
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.