Desk

Put a draft on Outerport as a hosted project

Changed on

Takes exactly one of name and project. With name, creates the caller's project of that name the first time, and replaces or adds files after that. With project instead (the id of a project the caller reaches, one shared with the caller's organization included, or the name of one of the caller's own), writes into that project, and deletes the stored paths remove names in the same write; a path in remove that matches no stored file (404), or that a sent file is at or under (400), refuses the deploy. Files neither sent nor removed stay. Answers the project's link, where it is read, reviewed and run in a browser.

post/api/v0/desk/drafts/deploy

Request

Request body

filesobject required

The draft's files, {path: text}, paths relative to the project root.

namestring nullable

The caller's project of this name: made the first time, its files written after that.

projectstring nullable

Instead of name: the id of a project the caller reaches, or the name of one of the caller's own, to write into.

removestring[]

With project: stored paths to delete in the same deploy, a directory's path every file under it; at most 10000.

Response

Successful Response

object required

Changes