---
title: "Converteer OpenAPI 3.0/3.1"
method: POST
path: "/v1/oas/convert"
tags: ["Tools"]
---

# Converteer OpenAPI 3.0/3.1

`POST /v1/oas/convert`

Converteert OpenAPI naar de laatst ondersteunde versie (standaard 3.1). Meegegeven targetVersion (3.0 of 3.1) bepaalt het doel. Body: { oasUrl } of { oasBody } (stringified JSON of YAML).

## Request body

- OasInput
  - `oasBody` string
  - `oasUrl` string
  - `targetVersion` string — Doelversie. Voor conversie: 3.0 of 3.1. Voor validatie: 2.0 of 2.1.

## Response `200`

OK

## Other responses

- `404` — Resource does not exist

---

[API](https://skmtc.dev/overheid/apis/tools-api-v1.md) · [All operations](https://skmtc.dev/overheid/apis/tools-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/overheid/tools-api-v1/revisions/960229fe38bf/schema)
