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

# reorderWidgets

> Reorders multiple widgets on the landing page by updating their positions in bulk.



**mutation** `reorderWidgets(input: ReorderWidgetsInput!): ReorderWidgetsPayload!`

## Arguments

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

## Returns

`ReorderWidgetsPayload!`

**`errors`**: `[ReorderWidgetsError!]`

---

**`widget`**: `[Widget!]`

## Examples

```graphql Mutation
mutation ReorderWidgets($input: ReorderWidgetsInput!) {
  reorderWidgets(input: $input) {
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
    widget {
      createdAt
      createdBy
      id
      itemType
      lastModified
      pinnedItems {
        __typename
        ... on PinnedCardDefinition {
          __typename
        }
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "widgets": [
      {
        "position": 1.5,
        "widgetId": "value"
      }
    ]
  }
}
```

```json Response
{
  "data": {
    "reorderWidgets": {
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ],
      "widget": [
        {
          "createdAt": "value",
          "createdBy": "value",
          "id": "id",
          "itemType": "CARD_DEFINITIONS",
          "lastModified": "value",
          "pinnedItems": [
            {
              "__typename": "PinnedCardDefinition"
            }
          ]
        }
      ]
    }
  }
}
```


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