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.CBL71_21WiKphqlWV34l0tlFn8eGn_YrnPrMexNmHltofj3DkBRsnpQEFY5O5H6i-iRl3bPDBi...";
Path = "/New/mydoc.docx";

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