Move files to a folder
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
projectId
Request
This endpoint expects an object.
fileIds
The file ids to move.
folderId
Target folder id (null = the Inbox).
Response
The moved files.
files
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error