This is a convenience wrapper around dataone::updateObject()
which copies in
fields from the old object's System Metadata such as the rightsHolder and
accessPolicy and updates only what needs to be changed.
update_object(mn, pid, path, format_id = NULL, new_pid = NULL, sid = NULL)
mn | (MNode) The Member Node to update the object on. |
---|---|
pid | (character) The PID of the object to update. |
path | (character) The full path to the file to update with. |
format_id | (character) Optional. The format ID to set for the object.
When not set, |
new_pid | (character) Optional. Specify the PID for the new object. Defaults to automatically generating a new, random UUID-style PID. |
sid | (character) Optional. Specify a Series ID (SID) to use for the new object. |
(character) The PID of the updated object.