Move Item
Move one or many items elsewhere within File Request.
Endpoint
http
POST /api/v1/requests/{file_request_id}/movesParameters
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_request_id | string | yes | - |
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/requests/{file_request_id}/moves' \
--header 'Content-Type: application/json' \
--data-raw '{
"to_id": "{folder_id}",
"items": [
{
"type": "file",
"id": "{item_id}"
}
]
}'Response
json
{
"type": "success",
"message": "Items was successfully moved."
}json
{
"type": "error",
"message": "Access Denied"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}