Import schemas
Import schemas from a previously exported zip file.
Request:
- Content-Type:
multipart/form-data file(file, required): The exported zip file
Response:
success(boolean): Whether the import was successfulimportedBlueprintsCount(number): Number of blueprints importedimportedSchemasCount(number): Number of schemas importedconflictBlueprintsCount(number): Number of blueprints that had conflictsconflictBlueprints(string[]): List of conflicting blueprint class namesblueprintIds(string[]): IDs of the imported blueprintsschemaIds(string[]): IDs of the imported schemas
Notes:
- All imported blueprints and schemas will be assigned new IDs
- Metadata (organization, workspace, user) will be updated to the importing user
- If a blueprint with the same class name already exists, the import will fail
How It Works
1. Prepare Export File
2. Upload File
3. Process Import
Request Parameters
Request Body
The request must be sent asmultipart/form-data with the following property:
Import Behavior
What Gets Imported
- Blueprint configurations - Document type classifications and extraction rules
- Schema definitions - Field mappings, validation rules, and data types
- Relationships - Links between blueprints and schemas
What Gets Updated
- New IDs - All imported items receive new unique identifiers
- Metadata - Organization, workspace, and user information updated to current context
- Timestamps - Creation and modification times reset to import time
Conflict Handling
Blueprint Name Conflicts
Blueprint Name Conflicts
Schema Field Conflicts
Schema Field Conflicts
Idempotency-Key request header so a retry
cannot apply the change twice. See
Idempotent requests.Authorizations
API key for authentication
Headers
Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.
Body
Exported zip file
Response
Schemas imported successfully
Import success status
Number of blueprints imported
Number of schemas imported
Number of conflicting blueprints
List of conflicting blueprint class names
List of imported blueprint IDs
List of imported schema IDs