Move Item
Move one or many files or folders elsewhere
Endpoint
http
POST /api/v1/movesParameters
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
to_id | uuid | - | The id of the parent folder, there the items move. If null, then the items will be moved into the home location |
items | array | yes | The array of the items |
items.*.type | string | yes | The type of the deleting item. Allowed types are folder or file. |
items.*.id | uuid | yes | The ID of the item. |
Request example
sh
curl --location --request POST 'https://files.ro/api/v1/moves' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data-raw '{
"to_id": null,
"items": [
{
"type": "file",
"id": "{item_id}"
}
]
}'Response
json
{
"type": "success",
"message": "Items was successfully moved."
}json
{
"type": "error",
"message": "You are not authorized"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}