Skip to contents

Updates metadata associated with a ScienceBase item based on supplied list of new or updated metadata elements.

Usage

item_update(sb_id, info, ...)

Arguments

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

info

list of metadata info (key-value pairs) to change on the item

...

Additional parameters are passed on to GET, POST, HEAD, PUT.

Value

An object of class sbitem

Examples

if (FALSE) {
res <- item_create(user_id(), "item-to-update") 
out <- item_update(res, list(title = "item-updated"))
out$title
}