Stay organized with collections Save and categorize content based on your preferences.
Imports documents into Google Cloud Firestore. Existing documents with the same name are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an databases.importDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.
HTTP request
POST https://firestore.googleapis.com/v1beta2/{name=projects/*/databases/*}:importDocuments
Which collection ids to import. Unspecified means all collections included in the import.
inputUriPrefix
string
Location of the exported files. This must match the outputUriPrefix of an ExportDocumentsResponse from an export that has completed successfully. See: google.firestore.admin.v1beta2.ExportDocumentsResponse.output_uri_prefix.
Response body
If successful, the response body contains an instance of Operation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-02 UTC."],[[["Imports documents into Google Cloud Firestore, overwriting existing documents with the same name."],["The import process runs in the background, with progress tracked via the created Operation resource."],["The request must specify the database for import using the format `projects/{projectId}/databases/{databaseId}`."],["The request includes the collection IDs to import and the location of the exported files."],["Requires authorization with either the `https://www.googleapis.com/auth/datastore` or `https://www.googleapis.com/auth/cloud-platform` OAuth scopes."]]],[]]