---
title: "paste classes"
method: POST
path: "/api/workspaces/{targetWorkspaceName}/schemas/{targetSchemaName}/paste"
tags: ["paste-rest-controller"]
---

# paste classes

`POST /api/workspaces/{targetWorkspaceName}/schemas/{targetSchemaName}/paste`

## Request

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

Create copies of one or more previously copied classes in the target graph. A referenced data type listed in referencesToCopy also brings the data types its own attributes need.

## Path parameters

- `targetWorkspaceName` string, required
- `targetSchemaName` string, required

## Headers

- `Origin` string

## Request body

- PasteClassesRequestDTO
  - `copyAsAbstract` boolean
  - `copyAssociations` boolean
  - `copyAttributes` boolean
  - `copyInheritance` boolean
  - `referencesToCopy` URI[]
    - `prefix` string
    - `suffix` string
  - `sources` PasteSourceClassDTO[]
    - `classUUID` string
    - `sourceSchemaName` string
    - `sourceWorkspaceName` string
  - `targetPackageUUID` string, uuid

## Response `200`

OK

- CopyClassResponseDTO[]
  - `name` string
  - `uuid` string

## Changes

- **2026-11-23** `91d142ef001a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/workspaces/:targetWorkspaceName/schemas/:targetSchemaName/paste/post.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)
