---
title: "Import the packages chosen from Enterprise Architect XMI exports"
method: PUT
path: "/api/workspaces/{workspaceName}/imports/{jobId}/packages"
tags: ["dataset"]
---

# Import the packages chosen from Enterprise Architect XMI exports

`PUT /api/workspaces/{workspaceName}/imports/{jobId}/packages`

## Request

- The document declares no server URL.
- Auth: none declared

Starts a background import of the chosen packages, each becoming one schema of the workspace, and returns the id of the job to poll for progress. The exports are the ones the given read job holds, so they are not uploaded again; a read can be chosen from once.

## Path parameters

- `workspaceName` string, required
- `jobId` string, uuid, required

## Headers

- `Origin` string

## Request body

- ImportSelectionDTO: What to import out of the export.
  - `diagramIds` string[]
  - `packages` SelectedPackageDTO[]
    - `extensionNamespace` string
    - `fileIndex` integer
    - `modelNamespace` string
    - `name` string
    - `packageId` string
    - `schemaName` string
    - `scope` 'WITH_SUB_PACKAGES' | 'PACKAGE_ONLY'

## Response `202`

Import started

- ImportJobCreatedResponse
  - `jobId` string, uuid

## Other responses

- `404`: No such import job
- `409`: An import is already running for this session, the read has not finished yet, or the exports of that read are gone

## Changes

- **2026-11-24** `67612da60962`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/workspaces/:workspaceName/imports/:jobId/packages/put.md)

---

[API](https://skmtc.dev/soptim/apis/rdfarchitect-backend.md) - [All operations](https://skmtc.dev/soptim/apis/rdfarchitect-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/soptim/apis/rdfarchitect-backend/revisions/21e6477d8dd8?raw)
