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

# createPin

> Add a target to one of a Network's curated pin lists. Idempotent.

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



**mutation** `createPin(input: CreatePinInput!): CreatePinPayload`

## Arguments

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

Parameters for CreatePin

## Returns

`CreatePinPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`pin`**: `Pin`

The created 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 CreatePin($input: CreatePinInput!) {
  createPin(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": {
    "list": "FEATURED",
    "targetId": "id",
    "targetType": "CUSTOM_ONBOARDING_POINTER"
  }
}
```

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