Create folder
Creates a directory on the disk
- Parameters
- Advanced call ?
Function CreateFolder(Val Token, Val Path) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Path to the created folder |
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...";
Path = "/" + String(New UUID);
Result = OPI_YandexDisk.CreateFolder(Token, Path);
- Bash
- CMD/Bat
oint yadisk CreateFolder \
--token "***" \
--path "/ccfb0a0d-d2b3-45e5-a309-339d1f6a9149"
oint yadisk CreateFolder ^
--token "***" ^
--path "/ccfb0a0d-d2b3-45e5-a309-339d1f6a9149"
Result
{
"path": "disk:/4090484d-955c-4e87-b913-81e23de0d583",
"type": "dir",
"name": "4090484d-955c-4e87-b913-81e23de0d583",
"created": "2026-06-18T17:39:33+00:00",
"modified": "2026-06-18T17:39:33+00:00",
"_embedded": {
"path": "disk:/4090484d-955c-4e87-b913-81e23de0d583",
"limit": 20,
"offset": 0,
"sort": "",
"total": 0,
"items": []
},
"resource_id": "1573541518:6177a62b8c297dc1be467c9a6baa093aaa21911ad8a733d955b13baf42cc5027",
"revision": 1781804373129980,
"comment_ids": {
"public_resource": "1573541518:6177a62b8c297dc1be467c9a6baa093aaa21911ad8a733d955b13baf42cc5027",
"private_resource": "1573541518:6177a62b8c297dc1be467c9a6baa093aaa21911ad8a733d955b13baf42cc5027"
},
"exif": {}
}