POST /api/storage/v1/copy or /api/storage/v1/copy-overwrite
Copy file to destination path, file can be owned by self or by others (only if the file is hidden or public).
Request
{
"token": String,
"from-userid": i64, (who to copy from, can be your own id)
"from": String,
"to": String
}
Response
Status code: 201
{
"type": "copied"
}
Possible errors
invalid tokennot verifiedpermission deniedpath occupied(non overwrite only)file not foundstorage fullexternal