---
title: "updates the layout of a diagram"
method: PUT
path: "/api/workspaces/{workspaceName}/schemas/{schemaName}/layout/{diagramUUID}"
tags: ["diagram", "layout"]
---

# updates the layout of a diagram

`PUT /api/workspaces/{workspaceName}/schemas/{schemaName}/layout/{diagramUUID}`

## Request

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

Updates the layout of the classes, edges and labels in the request body in one step. Every part is optional, only the elements sent are updated.

## Path parameters

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

## Headers

- `origin` string

## Request body

- DiagramLayoutDTO
  - `allEdges` boolean
  - `automatic` boolean
  - `classes` ClassPositionDTO[]
    - `XPosition` number, double
    - `YPosition` number, double
    - `ZPosition` integer
    - `classUUID` string, uuid
    - `xPosition` number, double
    - `yPosition` number, double
    - `zPosition` integer
  - `edges` EdgeLayoutDTO[]
    - `kind` 'inheritance' | 'association'
    - `points` EdgePointDTO[]
      - `id` string
      - `side` 'source' | 'target'
      - `x` number, double
      - `y` number, double
    - `sourceClass` string, uuid
    - `sourceObject` string, uuid
    - `targetClass` string, uuid
    - `targetObject` string, uuid
  - `labels` LabelPositionDTO[]
    - `identifiedObjectUUID` string, uuid
    - `kind` string
    - `x` number, double
    - `y` number, double

## Response `200`

OK

## Changes

- **2026-12-03** `2d877ee4961e`: 3 warning, 3 info
  - removed the request property `classes/items/xposition`
  - removed the request property `classes/items/yposition`
  - removed the request property `classes/items/zposition`
  - added the new optional request property `classes/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/schemas/:schemaName/layout/:diagramUUID/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)
