Skip to main content

Unpublish file

Prohibits access to the file for external users

Function CancelFilePublication(Val Token, Val FileID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
FileID--fileidStringID of the file to be accessed

Returns: Map Of KeyAndValue - serialized JSON response from Dropbox


1C:Enterprise/OneScript code example
    Token = "sl.B_msgdiPWezavqeIij7xO0CoH6lFDkcxzp9wOv6yyW7dixfCrQAW21oFDnvVjkfZa4UegdzdP0...";
File = "kJU6-a-pT48AAAAAAAAABw";

Result = OPI_Dropbox.CancelFilePublication(Token, File);
    oint dropbox CancelFilePublication \
--token "***" \
--fileid "kJU6-a-pT48AAAAAAAAABw"
Result
{}