Import schemas
Endpoints
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
POST
Import schemas
Import schemas from a previously exported zip file. This endpoint allows you to restore or transfer AI schemas between workspaces.
All imported blueprints and schemas will be assigned new IDs. Metadata will be
updated to the importing user’s context.
How It Works
Request Parameters
Request Body
The request must be sent asmultipart/form-data with the following property:
| Property | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | The exported zip file to import |
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
If a blueprint with the same class name already exists, the entire import
fails. You must either: - Rename the existing blueprint - Rename the
blueprint in the export file - Import to a different workspace
Schema Field Conflicts
Schema Field Conflicts
Schema field conflicts are automatically resolved by creating new schema
versions with updated field mappings.
Authorizations
API key for authentication
Body
application/json
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