Save public object to disk
Saves the public object to your disk
- Parameters
- Advanced call ?
Function SavePublicObjectToDisk(Val Token, Val URL, From = "", Target = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| URL | --url | String | ✔ | Object address |
| From | --from | String | ✖ | Path within public catalog (folders only) |
| Target | --to | String | ✖ | File save path |
Returns
Map Of KeyAndValue - serialized JSON response from Yandex
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
URL = "https://yadi.sk/d/n0QfpfP48V7piQ";
Result = OPI_YandexDisk.SavePublicObjectToDisk(Token, URL);
- Bash
- CMD/Bat
oint yadisk SavePublicObjectToDisk \
--token "***" \
--url "https://yadi.sk/d/OitH_6Db6ggdRw"
oint yadisk SavePublicObjectToDisk ^
--token "***" ^
--url "https://yadi.sk/d/OitH_6Db6ggdRw"
Result
{
"path": "disk:/За грузки/b00c92b7-db3b-400e-b0d2-accf2e1e2230.png",
"type": "file",
"name": "b00c92b7-db3b-400e-b0d2-accf2e1e2230.png",
"created": "2026-07-19T17:12:13+00:00",
"modified": "2026-07-19T17:12:12+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"media_type": "image",
"resource_id": "1573541518:e0b1c545f8092a237cbaa927151ff453e216f51089ff62353fd8b3a79464e26e",
"revision": 1784481133233513,
"comment_ids": {
"public_resource": "1573541518:e0b1c545f8092a237cbaa927151ff453e216f51089ff62353fd8b3a79464e26e",
"private_resource": "1573541518:e0b1c545f8092a237cbaa927151ff453e216f51089ff62353fd8b3a79464e26e"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/8bb6e6e19653498b61e9abe2a66f8bc557f411602458e06b065003b74a1decdc/6a5d3dae/Kdpe3dFisZLPovVA4r-aBmpkby3AOQiLsayEHYapOMw2ylFGSbZZrsWtGPTvHxG_-QDrqSGFBOOsS3b3gKT1zA%3D%3D?uid=1573541518&filename=b00c92b7-db3b-400e-b0d2-accf2e1e2230.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"
}