---
title: "Extend classes into another schema"
method: POST
path: "/api/workspaces/{workspaceName}/classes/extendToSchema"
tags: ["class"]
---

# Extend classes into another schema

`POST /api/workspaces/{workspaceName}/classes/extendToSchema`

## Request

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

Creates a stub of every given class in another graph of the same dataset, optionally stubbing their superclasses as well. The classes may come from different graphs and are addressed either by the uuid they carry there or by the uuid of their merged class. Classes that are already defined in the target graph are left untouched.

## Path parameters

- `workspaceName` string, required

## Headers

- `Origin` string

## Request body

- ExtendToSchemaRequest
  - `classUUIDs` string[]
  - `schemaName` string
  - `withInheritance` boolean

## Response `200`

OK

- ClassExtensionResultDTO[]
  - `classUUID` string, uuid
  - `created` boolean
  - `packageUUID` string, uuid
  - `sourceClassUUID` string, uuid

## Changes

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

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/workspaces/:workspaceName/classes/extendToSchema/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)
