Skip to main content

Add tag

Add new tag to file or folder

Function AddTag(Val Token, Val Path, Val Tag) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Path--pathStringPath to the object for which the tag needs to be created
Tag--tagStringTag text

Returns: Map Of KeyAndValue - serialized JSON response from Dropbox


1C:Enterprise/OneScript code example
    Tag   = "Important";
Token = "sl.B_msgdiPWezavqeIij7xO0CoH6lFDkcxzp9wOv6yyW7dixfCrQAW21oFDnvVjkfZa4UegdzdP0...";
Path = "/New/mydoc.docx";

Result = OPI_Dropbox.AddTag(Token, Path, Tag);
    oint dropbox AddTag \
--token "***" \
--path "/New/mydoc.docx" \
--tag "Important"
Result
{}