files/en-us/mozilla/add-ons/webextensions/api/tabgroups/update/index.md
Modifies the state of a tab group.
let updatedTabGroup = await browser.tabGroups.update(
groupId, // integer
updateProperties // object
);
groupId
integer The ID of the tab group to update.updateProperties
collapsed {{optional_inline}}
boolean. Whether the tab group is collapsed or expanded in the tab strip.
If the active tab is in a group that is collapsed:
color {{optional_inline}}
title {{optional_inline}}
string. The name of the tab group.A Promise fulfilled with a {{WebExtAPIRef("tabGroups.TabGroup")}} object. If the request fails, the promise is rejected with an error message.
{{WebExtExamples("h2")}}
{{Compat}}