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

# reorderPin

> Reorder a pin within one of a Network's curated lists. Pass exactly one of
`atTop`, `atBottom`, or `atItemId` (the ID of a sibling pin to insert above).

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



**mutation** `reorderPin(input: ReorderPinInput!): ReorderPinPayload`

## Arguments

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

Parameters for ReorderPin

## Returns

`ReorderPinPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`pin`**: `Pin`

The reordered pin. Null only when a user-correctable error is returned.

---

**`pins`**: `[Pin!]!`

The full pin list this write landed in, post-write, in curator-set order.

## Examples

```graphql Mutation
mutation ReorderPin($input: ReorderPinInput!) {
  reorderPin(input: $input) {
    clientMutationId
    errors
    pin {
      id
      list
      position
      target {
        __typename
        ... on CustomOnboardingPointerPin {
          __typename
        }
      }
    }
    pins {
      id
      list
      position
      target {
        __typename
        ... on CustomOnboardingPointerPin {
          __typename
        }
      }
    }
  }
}
```

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

```json Response
{
  "data": {
    "reorderPin": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "pin": {
        "id": "id",
        "list": "FEATURED",
        "position": 1,
        "target": {
          "__typename": "CustomOnboardingPointerPin"
        }
      },
      "pins": [
        {
          "id": "id",
          "list": "FEATURED",
          "position": 1,
          "target": {
            "__typename": "CustomOnboardingPointerPin"
          }
        }
      ]
    }
  }
}
```


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