Open a drop in the site editor (Pro/Team)

Changed on

Owner-only; requires an active Pro/Team subscription, like every editor route. Call this first: the first call imports the drop's live files (up to 200 files and 20 MB in total) and starts its revision history. Publishing through the API afterwards still works and shows up as a revision.

get/drops/{slug}/tree

Request

  • Base URL: https://ship.page
  • URL: https://ship.page/drops/{slug}/tree
  • Auth: HTTP bearer

Response

Live files, your private draft and the content_rev to publish against.

slugstring required
content_revinteger required

Changes on every publish, from the editor or the API. Publish with it as base_content_rev.

pendingboolean required

A publish is still being written out.

importedboolean required

True when this call imported the drop into the editor.

Example response

{
  "cap": {
    "files": 200,
    "bytes": 20971520
  },
  "live": {
    "files": [
      {
        "path": "css/site.css"
      }
    ]
  },
  "draft": {
    "files": [
      {
        "path": "css/site.css"
      }
    ]
  }
}

Changes