Skip to main content
Move items into a folder

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
docs
object[]
required

Documents and folders to move. A folder is taken with everything beneath it.

Required array length: 1 - 1000 elements
folderId
string | null

Folder to move the items into. Sent as null, they go to the root of whichever tree isShared names, which is how something is taken out of a folder without leaving the tree.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"97cfb9de-92dd-413a-b5e7-175eff7506d6"

isShared
boolean

Which of the two trees the destination belongs to: the tenant's shared one, or the caller's own. It settles the destination when no folder is named. Where one is named, the tree is taken from that folder instead, but this still governs whether the moved items inherit its rights - so send it consistently with the destination.

Example:

true

rightsMode
enum<string>
default:add

Whether the moved items should take on the access rights of the folder they land in, on top of what they already have, or keep their own untouched. It bears only on a move into the shared tree - in a personal one nothing is inherited either way.

Available options:
add,
noop
Example:

"add"

Response

Returns the entries that did not go through.

count
integer
required

Number of items the request processed, successful and failed alike.

Example:

22

errors
boolean
required

Whether any item failed. Check it before treating the call as a clean success - the request itself answers 200 even when individual items did not go through.

Example:

false

items
object[]

Per-item outcomes. Endpoints report the failed items here; some also list the successful ones, so read each item's own status rather than inferring it from being listed.