Skip to content

Developers · GraphQL

GraphQL Importing/Exporting Mutations

Last updated 1 November 2026

Use this document as a guide to GraphQL mutations for importing and exporting data on Insites.

data_export

Schedules an export of records, users or both, like , but with extra filtering and sorting. It returns the ID of an export task, which you can check the same way does. The CSV files it creates work with .

data_export(
  encryption: PropertyUploadEncryptionInput
  models: DataExportModelsInput  # deprecated, use records
  records: DataExportRecordsInput
  split_files: Boolean = true
  users: DataExportUsersInput
): DataExport!

Arguments

Provide at least an empty hash if you want records to be exported.

Provide at least an empty hash if you want users to be exported.

Type

import_models

Code example:

import_models(
  _id_remap: Boolean = true
  _index_rebuild: Boolean = true
  models: [CustomizationImport!]!
): ImportCustomizationsMutationPayload

Arguments

Remap IDs; when disabled, all IDs need to be an Integer.

Rebuilds index for full-text search queries.

Type

An autogenerated return type of .

import_users

Code example:

import_users(
  _id_remap: Boolean = true
  _index_rebuild: Boolean = true
  users: [UserImport!]!
): ImportUsersMutationPayload

Arguments

Remap IDs; when disabled, all IDs need to be an Integer.

Rebuilds index for full-text search queries.

Type

An autogenerated return type of .

Reference

You may visit the following resources for more information:

  • Boolean
  • CustomizationImport
  • DataExport
  • DataExportModelsInput
  • DataExportRecordsInput
  • DataExportUsersInput
  • ImportCustomizationsMutationPayload
  • ImportUsersMutationPayload
  • UserImport