API operation · files group
POST
/files/{user}/copy
First published 14 Oct 2026
0.2.0Unchanged since publicationCopy entries into a directory in a customer's home
Who may call it
AdministratorResellerCustomer
Token scope, any of
filesallAnswers200 OK
Supply 1 to 1000 source paths in paths and the destination directory in to. An invalid paths list returns 400. The operation uses the customer's permissions, copies directories recursively, preserves modes and timestamps, and copies symbolic links as links.
If a destination name is already in use, UrbeStack gives the copy a numbered name such as report (2).pdf. Copying an entry into its current directory creates a duplicate. The operation refuses to copy a directory into itself.
Parameters
userpath ·UsernameRequiredUsername of the customer who owns the home directory. Administrators can specify any customer, and customers can specify only themselves.
Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/files/alice/copy" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"paths": [
"text"
],
"to": "text"
}'Response ·
200 OK{
"copied": [
{
"from": "text",
"to": "text"
}
],
"count": 1
}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 requiredNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.0 on 14 Oct 2026.
urbestack.com/docs/api/post-files-user-copy/