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

# completeQuizAttempt

> Submit and score the viewer's ongoing quiz attempt



**mutation** `completeQuizAttempt(input: CompleteQuizAttemptInput!): CompleteQuizAttemptPayload`

## Arguments

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

Parameters for CompleteQuizAttempt

## Returns

`CompleteQuizAttemptPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

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

---

**`quizAttempt`**: `QuizAttempt`

The scored attempt, with its resulting status and percentage

## Examples

```graphql Mutation
mutation CompleteQuizAttempt($input: CompleteQuizAttemptInput!) {
  completeQuizAttempt(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": {
    "quizAttemptId": "id"
  }
}
```

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