Skip to content

Move Item

Move one or many files or folders elsewhere within shared folder.

Endpoint

http
POST /api/v1/shares/{token}/moves

Parameters

Path parameters

ParameterTypeRequiredDescription
tokenstringyes-

Body parameters

ParameterTypeRequiredDescription
to_iduuid-The id of the parent folder, there the items move. If null, then the items will be moved into the home location
itemsarrayyesThe array of the items
items.*.typestringyesThe type of the deleting item. Allowed types are folder or file.
items.*.iduuidyesThe ID of the item.

Request example

sh
curl --location --request POST 'https://files.ro/api/v1/shares/{token}/moves' \
--header 'Content-Type: application/json' \
--data-raw '{
  "to_id": "a4e7883c-cbda-411e-95b6-021f097040a8",
  "items": [
    {
      "type": "file",
      "id": "{item_id}"
    }
  ]
}'

Response

json
{
  "type": "success",
  "message": "Items was successfully moved."
}
json
{
  "type": "error",
  "message": "Access Denied"
}