Import a product structure from JSON data. This will update the specified
product with the provided data structure.
What changes: the product's content ends up matching the JSON.
- Tasks, steps, translations, data dictionary entries, resources, GPT tools and solutions are matched by
guid: existing ones are updated, new ones are added, and ones missing from the JSON are deleted. - Scripts, observations and GPT configuration are replaced as a whole.
- The product record itself is updated (not deleted), for the properties present in the JSON.
Use with caution: anything not in the JSON is deleted.
Critical Requirements:
- The imported JSON must come from a product with the same
bundle_id. Its product ID can differ, for example when moving between environments; product references are remapped to the target. - The
bundle_idin the JSON must match the target product'sbundle_idexactly - If
bundle_iddoes not match, the import will be rejected with a 400 error - The JSON must include the
product.bundle_idfield (included in all exports) - GUIDs are preserved from export to import (not regenerated)
- Empty arrays (e.g.,
tasks: []) will not create any entries for that entity type
Validation Rules:
bundle_idmismatch: Import rejected (prevents importing wrong product data)- Missing
bundle_id: Import rejected (indicates invalid export format) - Inherited Copilots: Cannot be imported (both source and target)
Limitations:
- Only one import operation can run per product at a time (concurrent imports are blocked)
- Large products may take several minutes to import; configure HTTP client timeouts accordingly
- If the import operation fails partway through, the product may be left partly imported; retry the import until it succeeds
Best Practices:
- Export the product before importing to create a backup
- Do not modify the exported JSON structure (only modify
datacontents if needed) - If the import fails, you can retry immediately (the lock is released on failure)
- Check the response
summaryanderrorsfields for import results - Retry failed imports until they succeed to ensure complete data restoration
Common use cases:
- Restore from backup (same product)
- Update product structure (same product)
- Transfer between environments (same product, different server)
Import Structure:
The data object must match the structure returned by the export endpoint.
Note: For complex imports with nested structures (tasks, steps, resources, etc.),
use the code samples provided below rather than the form-based interface. Copy the
cURL, JavaScript, Python, or PHP example and replace the JSON payload with your exported data.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
400The import failed or the JSON was rejected. The body is { "Error": ..., "message": ..., "status": "error" }.
For a rejected file (for example a bundle_id mismatch), Error and message are a string. For a failed import, both are the import result described above, with status: error and errors as an object keyed by model and field.
