This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Replaces current references with references in the specified property.
The replaceReferences()
method returns a Promise that resolves when the
item's current references in the specified property are removed and
references to the referenced items are added in their place. The Promise is
rejected if the current user does not have update permissions for the
collection.
Note: The replaceReferences()
method is not supported for single-item collections.
ID of the collection that contains the referring item.
Field to replaces the references in.
Referring item or referring item's ID.
Referenced item, referenced item's ID, an array of referenced items, or an array of referenced item IDs.
Options to use when processing this operation.