bookmarks.update()

Update the title or URL of a bookmark, or the name of a bookmark folder.

Syntax

browser.bookmarks.update(
  id,                    // string
  changes,               // object
  function(result) {...} // optional function
)

Parameters

id
string. ID of the bookmark or folder to update.
changes
object. Changes to apply, given as:
titleOptional
string. New title of the bookmark, or name of the folder if id refers to a folder.
urlOptional
string. New URL for the bookmark.
callbackOptional
function. The function is passed the following arguments:
result
bookmarks.BookmarkTreeNode. Updated BookmarkTreeNode.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic supportNo

Examples

Acknowledgements

This API is based on Chromium's chrome.bookmarks API. This documentation is derived from bookmarks.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg
 Last updated by: wbamberg,