> ## 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.

# updateSpaceImage

> Attach an existing image asset to one of a Space's branding image slots. Use
updateCommunityImage for the Network's own branding. Setting HEADER also
clears any Primary Video on the Space, because the two are one product field.
Use updateSpacePrimaryVideo to set the video instead.

**Required scope:** `host:write:network_spaces`



**mutation** `updateSpaceImage(input: UpdateSpaceImageInput!): UpdateSpaceImagePayload`

## Arguments

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

Parameters for UpdateSpaceImage

## Returns

`UpdateSpaceImagePayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`space`**: `Space`

## Examples

```graphql Mutation
mutation UpdateSpaceImage($input: UpdateSpaceImageInput!) {
  updateSpaceImage(input: $input) {
    clientMutationId
    errors
    space {
      archived
      avatarDarkModeUrl
      avatarUrl
      bookmarkedAt
      brandingImages {
        imageType
        url
      }
      createdAt
    }
  }
}
```

```json Variables
{
  "input": {
    "assetId": "id",
    "imageType": "AVATAR",
    "spaceId": "id"
  }
}
```

```json Response
{
  "data": {
    "updateSpaceImage": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "space": {
        "archived": true,
        "avatarDarkModeUrl": "string",
        "avatarUrl": "string",
        "bookmarkedAt": "value",
        "brandingImages": [
          {
            "imageType": "AVATAR",
            "url": "string"
          }
        ],
        "createdAt": "value"
      }
    }
  }
}
```


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