---
title: "updates class positions on dataset level"
method: PUT
path: "/api/workspaces/{workspaceName}/layout/{diagramUUID}/classes"
tags: ["diagram", "layout", "class"]
---

# updates class positions on dataset level

`PUT /api/workspaces/{workspaceName}/layout/{diagramUUID}/classes`

## Request

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

Updates the positions for all the classes provided in the request body with the provided coordinates.

## Path parameters

- `workspaceName` string, required
- `diagramUUID` string, required

## Headers

- `origin` string

## Request body

- ClassPositionDTO[]
  - `XPosition` number, double
  - `YPosition` number, double
  - `ZPosition` integer
  - `classUUID` string, uuid
  - `xPosition` number, double
  - `yPosition` number, double
  - `zPosition` integer

## Response `200`

OK

## Changes

- **2026-12-03** `2d877ee4961e`: 3 warning, 3 info
  - removed the request property `items/xposition`
  - removed the request property `items/yposition`
  - removed the request property `items/zposition`
  - added the new optional request property `items/XPosition`
  - …2 more
- **2026-11-23** `91d142ef001a`: 1 info
  - endpoint added

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