> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Import To New Workspace

Import a ZIP archive (produced by the Export Workspace action) into a newly created workspace.

`resource_types` narrows the import to specific resource types already present in the archive. `automation_pack_names`, `workflow_names`, `agent_pack_names`, and `agent_names` narrow it further to specific resources by their exact name, since a parsed archive has no live IDs to pick from a dropdown. Leave them all empty to import everything the archive contains.

## Basic Parameters

<div className="integrations-table">
  | Parameter          | Description                                                                                                                                                                                                                                                                                                                       |
  | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | File Identifier    | The identifier of the file to import.<br />A file identifier represents a file created or referenced earlier in the workflow (for example, from the Export Workspace action or a file upload step).<br />See [Using with Files in Workflows](https://docs.blinkops.com/docs/workflows/building-workflows/files) for more details. |
  | New Workspace Name | The display name of the workspace to create.                                                                                                                                                                                                                                                                                      |
  | Owner Email        | The email of the user who will own the newly created workspace.                                                                                                                                                                                                                                                                   |
  | Resource Types     | Select the whole resource types to import from the archive. Leave empty to import everything.<br /><br />**Note**: A type selected here is included in full - `automation_pack_names`, `workflow_names`, `agent_pack_names`, and `agent_names` have no additional narrowing effect on a type already selected here.               |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter                   | Description                                                                                                                                                                                                                                                                                                                                                                         |
  | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Agent Names                 | A comma-separated list of exact agent names to import from the archive, along with their dependencies. Leave empty to not filter by agent.<br /><br />**Note**: Import matches by exact, case-sensitive name since a parsed archive has no live IDs yet - use the name as it appears in the source workspace.                                                                       |
  | Agent Pack Names            | A comma-separated list of exact Agent Pack names to import from the archive, along with their dependencies. Leave empty to not filter by agent pack.<br /><br />**Note**: Import matches by exact, case-sensitive name since a parsed archive has no live IDs yet - use the name as it appears in the source workspace.                                                             |
  | Disable Scheduled Workflows | When checked, imported scheduled workflows are created as inactive instead of running on their configured schedule.                                                                                                                                                                                                                                                                 |
  | Exclude Resource Types      | Select the whole resource types to exclude from the import.<br /><br />**Note**: A type listed here cannot also be selected via `resource_types`, `automation_pack_names`, `workflow_names`, `agent_pack_names`, or `agent_names` - and the import fails, rather than silently dropping the resource, if something selected transitively depends on a resource of an excluded type. |
  | Workflow Names              | A comma-separated list of exact workflow names to import from the archive, along with their dependencies. Leave empty to not filter by workflow.<br /><br />**Note**: Import matches by exact, case-sensitive name since a parsed archive has no live IDs yet - use the name as it appears in the source workspace.                                                                 |
  | Workflow Pack Names         | A comma-separated list of exact Workflow Pack names to import from the archive, along with their dependencies. Leave empty to not filter by pack.<br /><br />**Note**: Import matches by exact, case-sensitive name since a parsed archive has no live IDs yet - use the name as it appears in the source workspace.                                                                |
</div>

## Example Output

```json theme={"dark"}
{
	"workspace_id": "3f6b9e2a-0000-0000-0000-000000000000",
	"counts": {
		"workflows": 2,
		"automation_packs": 1
	},
	"resources": [
		{
			"type": "automation_packs",
			"path": "workflows/acme-pack/pack.yaml",
			"uuid": "3f6b9e2a-0000-0000-0000-000000000002",
			"name": "acme-pack",
			"outcome": "created"
		},
		{
			"type": "workflows",
			"path": "workflows/wf-a1.yaml",
			"uuid": "3f6b9e2a-0000-0000-0000-000000000001",
			"name": "wf-a1",
			"outcome": "created"
		},
		{
			"type": "workflows",
			"path": "workflows/wf-a2.yaml",
			"uuid": "3f6b9e2a-0000-0000-0000-000000000003",
			"name": "wf-a2",
			"outcome": "created"
		}
	],
	"warnings": []
}
```
