The name of a Databin
bin = CreateDatabin["Name" -> "FirstName"];
bin["Name"]
(* "FirstName" *)
can be changed with SetOptions
:
SetOptions[bin, "Name" -> "LastName"];
The modification does not seem to be reflected when evaluating again the above:
bin["Name"]
(* "FirstName" *)
and the summary box also still displays the old name:
bin

It can be checked however that the change is indeed performed by going on the datadrop website:
- before the evaluation of
SetOptions
:

- after its evaluation and reloading the page:

Note that if we exit the kernel,
LocalSymbol["BinUUID"] = bin["UUID"];
Exit
and load the bin in a new session, we recover the new name:
bin = Databin[LocalSymbol["BinUUID"]]

Remove[LocalSymbol["BinUUID"]];
bin["Name"]
(* "LastName" *)
Update
Alternatively, all the cache related to the bin can be clear:
SetOptions[bin, "Name" -> "MiddleName"];
bin["Name"]
(* LastName *)
DownValues[DataDropClient`Private`datadropclientcache] =
With[{sid = bin["ShortID"], uuid = bin["UUID"]},
DeleteCases[
DownValues[DataDropClient`Private`datadropclientcache],
patt : HoldPattern[lhs_ :> rhs_] /; MemberQ[patt, sid | uuid , Infinity]
]
];
bin["Name"]
(* MiddleName *)
or the relevant part can be updated appropriately:
SetOptions[bin, "Name" -> "NoName"];
DataDropClient`Private`datadropclientcache[{"DatabinIDs", bin["UUID"]}] =
Options[bin][[1, 2]]
bin["Name"]
(* "NoName" *)
bin["Name"]
can get its name,but it's invariable after useSetOptions
.Strange behavior. $\endgroup$ – yode Sep 23 '16 at 12:20