← Back to Extensions domain

Extensions.setStorageItems

Sets `values` in extension storage in the given `storageArea`. The provided `values` will be merged with existing values in the storage area.

Domain: Extensions experimental

Parameters

NameTypeDescription
idstringID of extension.
storageAreaStorageAreaStorageArea to set data in.
valuesobjectValues to set.

Example Request

{
  "id": 1,
  "method": "Extensions.setStorageItems",
  "params": {
    "id": "id-value",
    "storageArea": "storageArea-value",
    "values": {}
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Extensions.setStorageItems', {"id": "id-value", "storageArea": "storageArea-value", "values": {}});
console.log(result);