Skip to content

Opensearch dashboards.savedobjectsrepository.update

Home > opensearch-dashboards > SavedObjectsRepository > update

SavedObjectsRepository.update() method

Updates an object

Signature:

update<T = unknown>(type: string, id: string, attributes: Partial<T>, options?: SavedObjectsUpdateOptions): Promise<SavedObjectsUpdateResponse<T>>;

Parameters

Parameter Type Description
type string
id string
attributes Partial<T>
options SavedObjectsUpdateOptions {string} options.version - ensures version matches that of persisted object {string} [options.namespace] {array} [options.references] - [{ name, type, id }]

Returns:

Promise<SavedObjectsUpdateResponse<T>>

{promise}