Skip to content

Opensearch dashboards.savedobjectsrepository.bulkupdate

Home > opensearch-dashboards > SavedObjectsRepository > bulkUpdate

SavedObjectsRepository.bulkUpdate() method

Updates multiple objects in bulk

Signature:

bulkUpdate<T = unknown>(objects: Array<SavedObjectsBulkUpdateObject<T>>, options?: SavedObjectsBulkUpdateOptions): Promise<SavedObjectsBulkUpdateResponse<T>>;

Parameters

Parameter Type Description
objects Array<SavedObjectsBulkUpdateObject<T>> [{ type, id, attributes, options: { version, namespace } references }] {string} options.version - ensures version matches that of persisted object {string} [options.namespace]
options SavedObjectsBulkUpdateOptions

Returns:

Promise<SavedObjectsBulkUpdateResponse<T>>

{promise} - {saved_objects: [[{ id, type, version, references, attributes, error: { message } }]}