---
title: "Replace ontology"
method: PUT
path: "/api/workspaces/{workspaceName}/schemas/{schemaName}/ontology"
tags: ["ontology"]
---

# Replace ontology

`PUT /api/workspaces/{workspaceName}/schemas/{schemaName}/ontology`

## Request

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

Replace the currently stored ontology with a new one.

## Path parameters

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

## Headers

- `Origin` string

## Request body

- OntologyDTO
  - `entries` OntologyEntry[]
    - `datatypeIri` string
    - `iri` string
    - `isIriEntry` boolean
    - `value` string
  - `namespace` string
  - `uuid` string

## Response `200`

OK

## Changes

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

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