# Move files or folders `POST /api/v1/files/move` Moves files or folders to another folder or to the library root. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Files → Write**. ## Body parameters - `ids` (array of integers, required) — IDs of files or folders. - `folder_id` (integer or null, required) — ID of the destination folder. Use null for the root. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/files/move" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"ids":[16],"folder_id":20}' ``` ## Response **200 OK** Returns confirmation that the items were moved. Example with fictional data and selected fields. ```json { "status": "success" } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — An item or destination is invalid, or the move would create a folder cycle.