2024-06-05 12:19:46 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 6
|
|
|
|
---
|
|
|
|
|
|
|
|
# Unpublish file
|
|
|
|
Prohibits access to the file for external users
|
|
|
|
|
|
|
|
|
|
|
|
*Function CancelFilePublication(Val Token, Val FileID) Export*
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
| FileID | --fileid | String | ID of the file to be accessed |
|
|
|
|
|
|
|
|
|
|
|
|
Returns: Key-Value Pair - serialized JSON response from Dropbox
|
|
|
|
|
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
Token = "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L...";
|
|
|
|
File = "kJU6-a-pT48AAAAAAAAABw";
|
|
|
|
|
|
|
|
Result = OPI_Dropbox.CancelFilePublication(Token, File);
|
2024-06-05 12:35:05 +02:00
|
|
|
|
2024-06-05 12:19:46 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
|
|
|
oint dropbox CancelFilePublication --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --fileid %fileid%
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
|
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
```
|