item_update_identifier: Add custom identifier to an existing item

View source: R/item_update_identifier.R

item_update_identifierR Documentation

Add custom identifier to an existing item

Description

Adds or updates an item's alternative identifier. This can add additional identifiers or update those already in place. See query_item_identifier for finding items based on alternative identifier.

Usage

item_update_identifier(sb_id, scheme, type, key, ...)

Arguments

sb_id

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

scheme

The identifier scheme

type

The identifier type

key

The identifier key

...

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

Examples

## Not run: 

initialize_sciencebase_session()
item_update_identifier("5485fd99e4b02acb4f0c7e81", "scheme", "type", "key")


## End(Not run)


USGS-R/sbtools documentation built on Feb. 21, 2024, 10:15 a.m.