powered by
Updates metadata associated with a ScienceBase item based on supplied list of new or updated metadata elements.
item_update(sb_id, info, ...)
An object of class sbitem
sbitem
An sbitem object or a character ScienceBase ID corresponding to the item
list of metadata info (key-value pairs) to change on the item
Additional parameters are passed on to GET, POST, HEAD, PUT.
GET
POST
HEAD
PUT
if (FALSE) { res <- item_create(user_id(), "item-to-update") out <- item_update(res, list(title = "item-updated")) out$title }
Run the code above in your browser using DataLab