Skip to Content
dropshelf
MCPToolsVersions and people

publish_version

Make a kept version the live one, older or newer than the current, such as the draft an upload ticket made.

The drop's address serves it at once. A version still being uploaded is waited for first. The owner, an editor or an admin may do this. A draft goes live only if nothing was published after the version it was built on; otherwise the refusal says who published, when, and which files changed: read those files with read_drop_files as the live version has them, adapt your change, and write again with base set to the live version. After two refusals, tell the person.

Changes data

Input

NameTypeRequiredDescription
slugstringyesthe drop's name, the first label of its address
versionintegeryesthe version number from list_versions

Output

FieldTypeAlways presentDescription
createdAtstringyes
currentDeployobject, nullableyesnull until the first deploy is live.
currentDeploy.createdAtstringyesWhen the deploy was accepted.
currentDeploy.errorstringnoWhy the deploy failed. Present only when status is failed.
currentDeploy.fileCountintegeryes
currentDeploy.finishedAtstring, nullablenoWhen it became live or failed.
currentDeploy.heldobjectno
currentDeploy.held.changedarray of objectyes
currentDeploy.held.changed[].change"added" or "modified" or "removed"yes
currentDeploy.held.changed[].pathstringyesA file's path.
currentDeploy.held.liveobjectyes
currentDeploy.held.live.atstringyesWhen it finished.
currentDeploy.held.live.bystringyesThe member who made it.
currentDeploy.held.live.deploystringyesThe live version's id.
currentDeploy.held.live.notestringnoIts note, when it has one.
currentDeploy.held.live.versionintegeryes
currentDeploy.held.rootstringnoThe published version the refused one was started from.
currentDeploy.held.rootGonebooleannoThe root's files are no longer kept, so nothing could be compared; changed and yours are empty.
currentDeploy.held.yoursarray of stringyes
currentDeploy.idstringyesULID.
currentDeploy.notestringnoOne line on what this version changes, when its writer gave one.
currentDeploy.source"web" or "api" or "mcp" or "demo"yesweb for a session, api for a bearer token, mcp for the instance's MCP server acting for a token, demo for the drops dropshelf-server demo install made.
currentDeploy.status"planned" or "pending" or "live" or "ready" or "superseded" or "failed"yes
currentDeploy.totalBytesintegeryes
currentDeploy.versionintegeryesThis deploy's number within its drop, counting from 1. It is what a preview address names; id stays the handle every other route takes.
descriptionstring, nullableyesFrom the request or the page's meta description; null when it has none.
expiresAtstring, nullableyesnull when the retention is forever.
namestring, nullableyesThe drop's name, from the request or the page's title; null when it has none.
ownerobjectyes
owner.emailstringyes
owner.idstringyesULID.
owner.namestringyes
retentionstringyesAlways whole days as Nd, or forever. Retention is stored and computed in whole days, so no finer value can appear here.
role"owner" or "editor" or "viewer" or nullyesThe 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.
slugstringyesThe subdomain label.
socialobjectyes
social.bookmarkedByMebooleanyesThe caller's own bookmark. Nobody else's answer reports it.
social.commentsintegeryesEveryone's comments on this drop.
social.likedByMebooleanyes
social.likesintegeryesEveryone's likes on this drop.
social.openChangeRequestsintegeryesOpen change requests on this drop: comments marked as change requests that nobody has resolved. Other comments never count.
typestringyesWhat kind of drop it is, fixed when it was created.
updatedAtstringyes
urlstringyesWhere the drop is served.
visibility"public" or "restricted" or "private"yespublic: 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.
waitingVersionobject, nullableyesThe 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.
waitingVersion.idstringyesThe deploy's id, which publishes it.
waitingVersion.versionintegeryesIts number within the drop, as in "v5 waiting".
The output as JSON Schema
{
  "properties": {
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "currentDeploy": {
      "description": "null until the first deploy is live.",
      "oneOf": [
        {
          "properties": {
            "createdAt": {
              "description": "When the deploy was accepted.",
              "format": "date-time",
              "type": "string"
            },
            "error": {
              "description": "Why the deploy failed. Present only when status is failed.",
              "type": "string"
            },
            "fileCount": {
              "type": "integer"
            },
            "finishedAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "When it became live or failed."
            },
            "held": {
              "properties": {
                "changed": {
                  "items": {
                    "properties": {
                      "change": {
                        "enum": [
                          "added",
                          "modified",
                          "removed"
                        ],
                        "type": "string"
                      },
                      "path": {
                        "description": "A file's path.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "path",
                      "change"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "live": {
                  "properties": {
                    "at": {
                      "description": "When it finished.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "by": {
                      "description": "The member who made it.",
                      "type": "string"
                    },
                    "deploy": {
                      "description": "The live version's id.",
                      "type": "string"
                    },
                    "note": {
                      "description": "Its note, when it has one.",
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "deploy",
                    "version",
                    "by",
                    "at"
                  ],
                  "type": "object"
                },
                "root": {
                  "description": "The published version the refused one was started from.",
                  "type": "string"
                },
                "rootGone": {
                  "description": "The root's files are no longer kept, so nothing could be compared; changed and yours are empty.",
                  "type": "boolean"
                },
                "yours": {
                  "items": {
                    "description": "A path the refused version changed against its root.",
                    "type": "string"
                  },
                  "type": "array"
                }
              },
              "required": [
                "live",
                "changed",
                "yours"
              ],
              "type": "object"
            },
            "id": {
              "description": "ULID.",
              "type": "string"
            },
            "note": {
              "description": "One line on what this version changes, when its writer gave one.",
              "type": "string"
            },
            "source": {
              "description": "web for a session, api for a bearer token, mcp for the instance's MCP server acting for a token, demo for the drops dropshelf-server demo install made.",
              "enum": [
                "web",
                "api",
                "mcp",
                "demo"
              ],
              "type": "string"
            },
            "status": {
              "enum": [
                "planned",
                "pending",
                "live",
                "ready",
                "superseded",
                "failed"
              ],
              "type": "string"
            },
            "totalBytes": {
              "format": "int64",
              "type": "integer"
            },
            "version": {
              "description": "This deploy's number within its drop, counting from 1. It is what a preview address names; id stays the handle every other route takes.",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "status",
            "fileCount",
            "totalBytes",
            "source",
            "version",
            "createdAt"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "From the request or the page's meta description; null when it has none."
    },
    "expiresAt": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "null when the retention is forever."
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The drop's name, from the request or the page's title; null when it has none."
    },
    "owner": {
      "properties": {
        "email": {
          "type": "string"
        },
        "id": {
          "description": "ULID.",
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "email",
        "name"
      ],
      "type": "object"
    },
    "retention": {
      "description": "Always whole days as Nd, or forever. Retention is stored and computed in whole days, so no finer value can appear here.",
      "type": "string"
    },
    "role": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "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.",
      "enum": [
        "owner",
        "editor",
        "viewer",
        null
      ]
    },
    "slug": {
      "description": "The subdomain label.",
      "type": "string"
    },
    "social": {
      "properties": {
        "bookmarkedByMe": {
          "description": "The caller's own bookmark. Nobody else's answer reports it.",
          "type": "boolean"
        },
        "comments": {
          "description": "Everyone's comments on this drop.",
          "type": "integer"
        },
        "likedByMe": {
          "type": "boolean"
        },
        "likes": {
          "description": "Everyone's likes on this drop.",
          "type": "integer"
        },
        "openChangeRequests": {
          "description": "Open change requests on this drop: comments marked as change requests that nobody has resolved. Other comments never count.",
          "type": "integer"
        }
      },
      "required": [
        "likes",
        "comments",
        "likedByMe",
        "bookmarkedByMe",
        "openChangeRequests"
      ],
      "type": "object"
    },
    "type": {
      "description": "What kind of drop it is, fixed when it was created.",
      "type": "string"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string"
    },
    "url": {
      "description": "Where the drop is served.",
      "type": "string"
    },
    "visibility": {
      "description": "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.",
      "enum": [
        "public",
        "restricted",
        "private"
      ],
      "type": "string"
    },
    "waitingVersion": {
      "description": "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.",
      "oneOf": [
        {
          "properties": {
            "id": {
              "description": "The deploy's id, which publishes it.",
              "type": "string"
            },
            "version": {
              "description": "Its number within the drop, as in \"v5 waiting\".",
              "type": "integer"
            }
          },
          "required": [
            "id",
            "version"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "slug",
    "type",
    "url",
    "owner",
    "visibility",
    "role",
    "name",
    "description",
    "social",
    "retention",
    "expiresAt",
    "currentDeploy",
    "waitingVersion",
    "createdAt",
    "updatedAt"
  ],
  "type": "object"
}

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

On this page