---
title: "Diagram to OTM"
method: POST
path: "/api/v1/startleft/diagram"
tags: ["Diagram"]
---

# Diagram to OTM

`POST /api/v1/startleft/diagram`

It generates an OTM from an diagram file

## Response `201`

Provided source file has been successfully processed and a new OTM file has been created

- unknown

## Other responses

- `400` — Bad request
- `500` — Internal server error

## Changes

> 10 revisions in range; 1 could not be searched.

- **2023-10-30** (v1) `380848a0fd81` — 1 info
  - added the new `DRAWIO` enum value to the request property `diag_type`
- **2023-03-21** (v1) `e26f51f73f6a` — 3 info
  - added the non-success response with the status `500`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`
- **2023-03-09** (v1) `edb3ad9fb88a` — 1 breaking, 1 warning, 3 info
  - request property `diag_type` was restricted to a list of enum values
  - removed `#/components/schemas/DiagramType` from the `diag_type` request property `allOf` list
  - added the new `LUCID` enum value to the request property `diag_type`
  - added the new `VISIO` enum value to the request property `diag_type`
  - …1 more
- **2023-02-28** (v1) `a59c1a86a96d` — 5 breaking, 4 info
  - added `#/components/schemas/DiagramType` to the `diag_type` request property `allOf` list
  - removed the enum value `ABACUS` of the request property `diag_type`
  - removed the enum value `DRAWIO` of the request property `diag_type`
  - removed the enum value `LUCID` of the request property `diag_type`
  - …5 more

[Change history](https://skmtc.dev/iriusrisk/apis/startleft-api/changes/api/v1/startleft/diagram/post.md)

---

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