> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# analyzeImportTask

> Checks the uploaded file of a cards import and counts the cards it would add or update. A file over 10 MB is checked in the background, and the task's `status` gives the verdict.



**mutation** `analyzeImportTask(input: AnalyzeImportTaskInput!): AnalyzeImportTaskPayload!`

> Deprecated: Use `analyzeCardsImportTask` instead.

## Arguments

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

## Returns

`AnalyzeImportTaskPayload!`

**`analyzeImportFileResult`**: `AnalyzeImportFileResult`

---

**`errors`**: `[AnalyzeImportTaskError!]`

## Examples

```graphql Mutation
mutation AnalyzeImportTask($input: AnalyzeImportTaskInput!) {
  analyzeImportTask(input: $input) {
    analyzeImportFileResult {
      additionsCount
      isAsync
      updatesCount
      validationResult {
        errors {
          __typename
        }
        invalidRecords
        isValid
        validatedRecords
      }
    }
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {}
}
```

```json Response
{
  "data": {
    "analyzeImportTask": {
      "analyzeImportFileResult": {
        "additionsCount": 1,
        "isAsync": true,
        "updatesCount": 1,
        "validationResult": {
          "errors": {
            "__typename": "AggregatedImportError"
          },
          "invalidRecords": 1,
          "isValid": true,
          "validatedRecords": 1
        }
      },
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


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