Move files to a folder

View as Markdown

Moves a batch of files into a folder (folderId: null returns them to the Inbox). The body carries fileIds and the target folderId. Requires file:write on the project.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired

Request

This endpoint expects an object.
fileIdslist of stringsRequired
The file ids to move.
folderIdstring or nullRequired

Target folder id (null = the Inbox).

Response

The moved files.
fileslist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error