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

# createCustomField

> Create a profile field on the Network. Supports every host-creatable response
type; tag and badge fields are system-managed.

**Required scope:** `host:write:network_members`



**mutation** `createCustomField(input: CreateCustomFieldInput!): CreateCustomFieldPayload`

## Arguments

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

Parameters for CreateCustomField

## Returns

`CreateCustomFieldPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`customField`**: `CustomField`

---

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

## Examples

```graphql Mutation
mutation CreateCustomField($input: CreateCustomFieldInput!) {
  createCustomField(input: $input) {
    clientMutationId
    customField {
      allowAdHoc
      answers {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
      }
      collectsContactDetails
      createdAt
      description
      id
    }
    errors
  }
}
```

```json Variables
{
  "input": {
    "privacy": "ADMIN",
    "responseBy": "HOSTS_ONLY",
    "responseType": "BADGE",
    "title": "string"
  }
}
```

```json Response
{
  "data": {
    "createCustomField": {
      "clientMutationId": "string",
      "customField": {
        "allowAdHoc": true,
        "answers": {
          "edges": [
            {
              "__typename": "CustomFieldAnswerEdge"
            }
          ],
          "nodes": [
            {
              "__typename": "CustomFieldAnswer"
            }
          ],
          "pageInfo": {
            "__typename": "PageInfo"
          }
        },
        "collectsContactDetails": true,
        "createdAt": "value",
        "description": "string",
        "id": "id"
      },
      "errors": [
        "string"
      ]
    }
  }
}
```


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