item_update: Update a SB item with new metadata

View source: R/item_update.R

item_updateR Documentation

Update a SB item with new metadata

Description

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

## Not run: 
res <- item_create(user_id(), "item-to-update") 
out <- item_update(res, list(title = "item-updated"))
out$title

## End(Not run)

USGS-R/sbtools documentation built on June 1, 2024, 9:47 p.m.