Skip to main content

Move object

Moves the object to the specified path and path to the original

Function MoveObject(Val Token, Val Original, Val Path, Val Overwrite = False) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Original--fromStringPath to the original file or folder
Path--toStringDestination path for moving
Overwrite--rewriteBooleanOverwrite if a file with the same name already exists
Returns

Map Of KeyAndValue - serialized JSON response from Yandex

1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
Original = "/5bb78325-64e6-4133-a369-c3a275f745cb.png";
Path = "/" + String(New UUID) + ".png";

Result = OPI_YandexDisk.MoveObject(Token, Original, Path, True);
oint yadisk MoveObject \
--token "***" \
--from "/627c5c50-129c-40e3-a3f4-c652849fd335.png" \
--to "/99551711-d38e-4761-969f-c94024a508ad.png" \
--rewrite true
Result
{
"path": "disk:/9f44df8f-0822-4bb8-b6a0-7530ea13ac9f.png",
"type": "file",
"name": "9f44df8f-0822-4bb8-b6a0-7530ea13ac9f.png",
"created": "2026-07-19T17:10:41+00:00",
"modified": "2026-07-19T17:11:18+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"media_type": "image",
"resource_id": "1573541518:69d21cf3025e8c75227b9b19255f24f79dc8713d8ff9b905f1b91eeb99403276",
"revision": 1784481078403028,
"comment_ids": {
"public_resource": "1573541518:69d21cf3025e8c75227b9b19255f24f79dc8713d8ff9b905f1b91eeb99403276",
"private_resource": "1573541518:69d21cf3025e8c75227b9b19255f24f79dc8713d8ff9b905f1b91eeb99403276"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/cef710760613a9f0f9cb602c7192bec55e80c74f6bc0b9c4f56d1bcca3bdf2b5/6a5d3d76/Kdpe3dFisZLPovVA4r-aBmpkby3AOQiLsayEHYapOMw2ylFGSbZZrsWtGPTvHxG_-QDrqSGFBOOsS3b3gKT1zA%3D%3D?uid=1573541518&filename=9f44df8f-0822-4bb8-b6a0-7530ea13ac9f.png&disposition=attachment&hash=&limit=0&content_type=multipart&owner_uid=1573541518&fsize=2114023&hid=03d7263840468e281bd0b238a26e7d0d&media_type=image&tknv=v3&is_direct_zip_experiment=1&etag=9e0176f87f6565a22f78e0f9b39a4d78"
}