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

# createQuizAnswer

> Answer a quiz question as the viewer



**mutation** `createQuizAnswer(input: CreateQuizAnswerInput!): CreateQuizAnswerPayload`

## Arguments

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

Parameters for CreateQuizAnswer

## Returns

`CreateQuizAnswerPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`quizAttempt`**: `QuizAttempt`

The viewer's ongoing attempt, with the recorded answer

## Examples

```graphql Mutation
mutation CreateQuizAnswer($input: CreateQuizAnswerInput!) {
  createQuizAnswer(input: $input) {
    clientMutationId
    errors
    quizAttempt {
      answers {
        cheerCount
        choice {
          __typename
        }
        createdAt
        id
        member {
          __typename
        }
        poll {
          __typename
        }
      }
      completedAt
      correctPercentage
      createdAt
      id
      member {
        ambassadorLevel
        ambassadorLevelId
        avatarUrl
        badges {
          __typename
        }
        communityRole
        conversations {
          __typename
        }
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "choiceId": "id",
    "quizQuestionId": "id"
  }
}
```

```json Response
{
  "data": {
    "createQuizAnswer": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "quizAttempt": {
        "answers": [
          {
            "cheerCount": 1,
            "choice": {
              "__typename": "PollChoice"
            },
            "createdAt": "value",
            "id": "id",
            "member": {
              "__typename": "User"
            },
            "poll": {
              "__typename": "Poll"
            }
          }
        ],
        "completedAt": "value",
        "correctPercentage": 1.5,
        "createdAt": "value",
        "id": "id",
        "member": {
          "ambassadorLevel": "string",
          "ambassadorLevelId": 1,
          "avatarUrl": "string",
          "badges": [
            {
              "__typename": "Badge"
            }
          ],
          "communityRole": "CONTRIBUTOR",
          "conversations": {
            "__typename": "PublicConversationConnection"
          }
        }
      }
    }
  }
}
```


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