1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-11 11:41:56 +02:00
Vitaly the Alpaca (bot) 0d4d4d3b4c Main build (Jenkins)
2024-11-11 22:11:22 +03:00

59 lines
1.2 KiB
Plaintext

---
sidebar_position: 6
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Unpublish file
Prohibits access to the file for external users
`Function CancelFilePublication(Val Token, Val FileID) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| FileID | --fileid | String | ✔ | ID of the file to be accessed |
Returns: Map Of KeyAndValue - serialized JSON response from Dropbox
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "sl.CAirrApMP3MmqfxAgYhlitMkH3J7CmcSnaOjCUghRVLtFIhPZ0jzduJbWPea8qBaOeeB-L_PZ6...";
File = "kJU6-a-pT48AAAAAAAAABw";
Result = OPI_Dropbox.CancelFilePublication(Token, File);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox CancelFilePublication \
--token "***" \
--fileid "kJU6-a-pT48AAAAAAAAABw"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox CancelFilePublication ^
--token "***" ^
--fileid "kJU6-a-pT48AAAAAAAAABw"
```
</TabItem>
</Tabs>
```json title="Result"
{}
```