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

# reorderSpace

> Reorder a Space within its Collection. Pass exactly one of `atTop`,
`atBottom`, or `atItemId` (the ID of a sibling Space whose current position to
take). Each move commits independently; a later failed move does not undo
earlier moves. See
https://docs.mightynetworks.com/headless-api/collections-and-space-ordering.

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



**mutation** `reorderSpace(input: ReorderSpaceInput!): ReorderSpacePayload`

## Arguments

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

Parameters for ReorderSpace

## Returns

`ReorderSpacePayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`space`**: `Space`

## Examples

```graphql Mutation
mutation ReorderSpace($input: ReorderSpaceInput!) {
  reorderSpace(input: $input) {
    clientMutationId
    errors
    space {
      archived
      avatarDarkModeUrl
      avatarUrl
      bookmarkedAt
      brandingImages {
        imageType
        url
      }
      createdAt
    }
  }
}
```

```json Variables
{
  "input": {
    "spaceId": "id"
  }
}
```

```json Response
{
  "data": {
    "reorderSpace": {
      "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.