/files/{user}/move
0.2.0Unchanged since publicationMove entries into a directory in the customer's home
filesallThe move stays within the customer's home and is quick regardless of entry size. If a destination name is taken, UrbeStack gives the incoming entry a numbered name. A requested entry already in the destination directory is reported as stayed. Use POST /files/{user}/rename to rename a single entry.
Give 1 to 1000 paths in paths and the destination directory in to. Each path starts with /, which represents the home directory. UrbeStack normalizes repeated slashes and . components. The API returns 400 for an invalid list, a missing path, a path that lacks the leading / or contains a control character or a .. component, a path over 4096 characters, or a component over 255 characters. It also returns 400 if user identifies an administrator. UrbeStack allows up to 900 seconds for the move.
Parameters
userpath ·UsernameRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/files/alice/move" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"paths": [
"text"
],
"to": "text"
}'200 OK{
"count": 1,
"moved": [
{
"from": "text",
"to": "text"
}
],
"stayed": [
"text"
]
}Errors
12 errors, each a status and a sentence400<name> is an administrator: administrators have no home400<what> climbs out of the home with ..400<what> has a name over 255 characters400<what> holds a control character400<what> is required400<what> is too long400<what> may hold at most 1000 paths400<what> must be a list of at least one path400<what> must start with /, which is the home400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication requiredurbestack.com/docs/api/post-files-user-move/