> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# updateGalleryGroups

> Declaratively replace a container's Discovery gallery sections. The
`galleryGroups` array defines the sections and their order (array order
becomes position). Custom sections omitted from the array are deleted; new
custom Top Spaces / Spaces Near You sections require a spacesCollectionId.
Between 0 and 8 sections may be enabled. Requires the custom_gallery_groups
billing feature. Returns the full refreshed list so newly-created sections' IDs are known.

**Required scope:** `host:write:network_settings`



**mutation** `updateGalleryGroups(input: UpdateGalleryGroupsInput!): UpdateGalleryGroupsPayload`

> Deprecated: Replaces every section in one write, overwriting changes others made meanwhile. Use createDefaultGalleryGroups, createGalleryGroup, updateGalleryGroup, reorderGalleryGroup and deleteGalleryGroup, which change one section at a time.

## Arguments

**`input`**: `UpdateGalleryGroupsInput!` (required)

Parameters for UpdateGalleryGroups

## Returns

`UpdateGalleryGroupsPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`galleryGroups`**: `[GalleryGroup!]`

## Examples

```graphql Mutation
mutation UpdateGalleryGroups($input: UpdateGalleryGroupsInput!) {
  updateGalleryGroups(input: $input) {
    clientMutationId
    errors
    galleryGroups {
      canDelete
      galleryPage
      galleryType
      id
      isEnabled
      label
    }
  }
}
```

```json Variables
{
  "input": {
    "galleryGroups": [
      {
        "galleryType": "BUNDLES",
        "isEnabled": true
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "updateGalleryGroups": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "galleryGroups": [
        {
          "canDelete": true,
          "galleryPage": "DISCOVERY",
          "galleryType": "BUNDLES",
          "id": "id",
          "isEnabled": true,
          "label": "string"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.