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

# createCardsExportTask

> Queues an export of the cards `contentFilters` matches into one file; its `RESULT` artifact holds the file once the returned task is `COMPLETED`. 500,000 or more matching cards fail with `ValidationError`. Set the fields directly; the nested `input` is the older form of the same fields.



**mutation** `createCardsExportTask(input: CreateCardsExportTaskInput!): CreateCardsExportTaskPayload!`

## Arguments

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

## Returns

`CreateCardsExportTaskPayload!`

**`errors`**: `[CreateCardsExportTaskError!]`

---

**`queuedTask`**: `QueuedTask`

## Examples

```graphql Mutation
mutation CreateCardsExportTask($input: CreateCardsExportTaskInput!) {
  createCardsExportTask(input: $input) {
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
    queuedTask {
      artifacts {
        available
        completedAt
        createdAt
        filename
        kind
        sizeBytes
      }
      awaitingConfirmation
      configuration {
        __typename
        ... on CardsImportConfiguration {
          __typename
        }
      }
      createdAt
      createdBy
      details {
        __typename
        ... on CardsImportDetails {
          __typename
        }
      }
    }
  }
}
```

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

```json Response
{
  "data": {
    "createCardsExportTask": {
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ],
      "queuedTask": {
        "artifacts": [
          {
            "available": true,
            "completedAt": "value",
            "createdAt": "value",
            "filename": "string",
            "kind": "INPUT",
            "sizeBytes": "value"
          }
        ],
        "awaitingConfirmation": true,
        "configuration": {
          "__typename": "CardsImportConfiguration"
        },
        "createdAt": "value",
        "createdBy": "value",
        "details": {
          "__typename": "CardsImportDetails"
        }
      }
    }
  }
}
```


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