/api/v1/workspaces/{workspace_id}/folders/{folder_id}Rename or move a folder
Renames a folder, changes its address, moves it (parent_id; null is the top level) or sets the access new documents in it start with. Admins and the owner. Every document below it moves to its new address, and the old addresses (the folder's own included) redirect. A new address that is already taken there is a 409 unless you send on_conflict: "suffix".
Path parameters
#workspace_idstringRequiredThe workspace's id, from the address of its settings page (
markdrop.in/settings/workspaces/<workspace-id>) or from List workspaces.folder_idstringRequiredThe folder's id, from List folders.
Request body
#application/json, required
namestring1–80 characters.
slugstring1–40 characters.
parent_idstringdefault_access"link" | "private" | "workspace"on_conflict"error" | "suffix"When the folder's address is already taken where it goes:
error(default) returns 409 saying what holds it;suffixtakes the next free address (name-2, name-3…). Default"error".
Responses
#200OK.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.