---
title: "POST /api/workspaces/{workspaceName}/diagrams/{diagramId}/classes"
method: POST
path: "/api/workspaces/{workspaceName}/diagrams/{diagramId}/classes"
tags: ["custom-dataset-diagram-all-classes-rest-controller"]
---

# POST /api/workspaces/{workspaceName}/diagrams/{diagramId}/classes

`POST /api/workspaces/{workspaceName}/diagrams/{diagramId}/classes`

## Request

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

## Path parameters

- `workspaceName` string, required
- `diagramId` string, required

## Headers

- `Origin` string

## Request body

- ClassInDiagram[]: The list of the classes to be added to the diagram
  - `schemaName` string
  - `uuid` string, uuid

## Response `200`

OK

## Changes

- **2026-11-23** `bd7ed7111924`: 1 breaking, 2 warning
  - the `items/schemaName` request property type changed from `object` to `string`
  - removed the request property `items/schemaName/prefix`
  - removed the request property `items/schemaName/suffix`
- **2026-11-23** `3aba8dace6ed`: 1 breaking, 2 info
  - the `items/schemaName` request property type changed from `string` to `object`
  - added the new optional request property `items/schemaName/prefix`
  - added the new optional request property `items/schemaName/suffix`
- **2026-11-23** `91d142ef001a`: 1 info
  - endpoint added

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