Unpublish folder
Cancels the public access mode for the directory
- Parameters
- Advanced call ?
Function CancelFolderPublication(Val Token, Val FolderID) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| FolderID | --folder | String | ✔ | ID of the public catalog (shared folder ID) |
Returns
Map Of KeyAndValue - serialized JSON response from Dropbox
| 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 = "sl.u.AGHisBACq5S_OZLr0m5nlPclkUHTuC7bAcgx3qLD4RSIOG5yZu6wao8-mXwEbhs-TC10gz2EnYJ0qnIbRIXAc5jF7-zCyw_9T9sJEQcuhb30g9b3M_s1gwf0Q5i2URlUF4mEJS1EpG50Dk9mH7NpV86q1Ww4P3EoF-zKI4UT6_zwhAixwV7CEDZttPL1sddquXuUIFynYHnnUlwx4W9ZYr7WuZVKBuJUnWzqdBuDnps0vABsr0lrZJtIx6xWKKyC9n3GQkJHr0jNoXx5OLPKFDLzuRK7azj57SJn4OebZ66ZyL-EpIQPaySFlu44IPvPWgi6bHJhLYPozUp3TmXdun6j4ydleevhoJcEuDfc1XuaF-Vr77ZRs6ab6NCgXufbzlim7vi2MB-GiSm6wXuBAknWqiMT4GudYhPSKCDeFJbQWk3a1tOzV0LpAaG2e3kDQTysjtQtPgQaqgw0ntx0Gmm79z76vrXP4EyXMnRsP4qJnTxROtQPBXFrsPo4n4SfYHCvJasa77mMqWeZESfwezDehGhG8Rkhw-PIJX7VaGvJZv1IR2ziy_n1toMbug6sewy1leCD2CmPZy5MOX5bWWmsiETf3rGBfB7QTFnO04J77U15tVCc53yN-1pB6HuOQB7L_xJLBUKxMJCI96oVnAP7uTP4K1VBkI6CVAVg1rIR2PT9RKTotrWhMGFmPpSrU2muAsgy6AHbalhikVFnw6JgV8t0saz...";
Folder = "13163859169";
Result = OPI_Dropbox.CancelFolderPublication(Token, Folder);
CurrentStatus = "in_progress";
JobID = Result["async_job_id"];
While CurrentStatus = "in_progress" Do
Result = OPI_Dropbox.GetAsynchronousChangeStatus(Token, JobID);
CurrentStatus = Result[".tag"];
OPI_Tools.Pause(3);
EndDo;
- Bash
- CMD/Bat
oint dropbox CancelFolderPublication \
--token "***" \
--folder "14445893107"
oint dropbox CancelFolderPublication ^
--token "***" ^
--folder "14445893107"
Result
{
".tag": "async_job_id",
"async_job_id": "dbjid:AACxWnc9jUkQ03mGEZyjUJ01wZS0UiAOWMfxubb0hmqnYnVFqvEHPZfTeQ2dc1z4vXRr8bYSaICd7fXRRFaogHZd"
}