1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-29 02:57:35 +02:00
OpenIntegrations/docs/en/md/Dropbox/Shared-access-settings/Cancel-file-publication.md

43 lines
892 B
Markdown
Raw Normal View History

---
sidebar_position: 6
---
# Unpublish file
Prohibits access to the file for external users
2024-07-10 12:58:29 +02:00
`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: Map Of KeyAndValue - serialized JSON response from Dropbox
2024-07-10 13:05:58 +02:00
<br/>
2024-07-10 12:58:29 +02:00
```bsl title="Code example"
2024-07-31 20:55:27 +02:00
Token = "sl.B5DKxgWeuOJQRiKaP3qEV_mcJXoc4byIFf1vAj1olHf6D9wUJRhHVWbXWZwmUYId6zZCWSPgiO...";
File = "kJU6-a-pT48AAAAAAAAABw";
Result = OPI_Dropbox.CancelFilePublication(Token, File);
```
```sh title="CLI command example"
oint dropbox CancelFilePublication --token "sl.B2ieEHcB9I9BTwJFjbf_MQtoZMKjGYgkpBqzQkvBfuSz41Qpy5r3d7a4ax22I5ILWhd9KLbN5L..." --fileid %fileid%
```
```json title="Result"
2024-07-10 13:11:17 +02:00
{}
```