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

# createBadge

> Create a badge on the Network — a hosts-assigned recognition members can earn.

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



**mutation** `createBadge(input: CreateBadgeInput!): CreateBadgePayload`

## Arguments

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

Parameters for CreateBadge

## Returns

`CreateBadgePayload`

**`badge`**: `Badge`

---

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

## Examples

```graphql Mutation
mutation CreateBadge($input: CreateBadgeInput!) {
  createBadge(input: $input) {
    badge {
      avatarUrl
      color
      createdAt
      creator {
        ambassadorLevel
        ambassadorLevelId
        avatarUrl
        badges {
          __typename
        }
        communityRole
        conversations {
          __typename
        }
      }
      customField {
        allowAdHoc
        answers {
          __typename
        }
        collectsContactDetails
        createdAt
        description
        id
      }
      description
    }
    clientMutationId
    errors
  }
}
```

```json Variables
{
  "input": {
    "avatarId": "id",
    "title": "string"
  }
}
```

```json Response
{
  "data": {
    "createBadge": {
      "badge": {
        "avatarUrl": "string",
        "color": "string",
        "createdAt": "value",
        "creator": {
          "ambassadorLevel": "string",
          "ambassadorLevelId": 1,
          "avatarUrl": "string",
          "badges": [
            {
              "__typename": "Badge"
            }
          ],
          "communityRole": "CONTRIBUTOR",
          "conversations": {
            "__typename": "PublicConversationConnection"
          }
        },
        "customField": {
          "allowAdHoc": true,
          "answers": {
            "__typename": "CustomFieldAnswerConnection"
          },
          "collectsContactDetails": true,
          "createdAt": "value",
          "description": "string",
          "id": "id"
        },
        "description": "string"
      },
      "clientMutationId": "string",
      "errors": [
        "string"
      ]
    }
  }
}
```


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