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

# IaC to OTM

`POST /api/v1/startleft/iac`

It generates an OTM from an IaC 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

- **2023-09-19** (v1) `058cbd974294` — 1 breaking, 3 info
  - added the new required request property `default_mapping_file`
  - added the new optional request property `custom_mapping_file`
  - the request property `mapping_file` became optional
  - request property `mapping_file` deprecated
- **2023-04-11** (v1) `73fcf92f8ae8` — 1 info
  - added the new `TFPLAN` enum value to the request property `iac_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 `iac_type` was restricted to a list of enum values
  - removed `#/components/schemas/IacType` from the `iac_type` request property `allOf` list
  - added the new `CLOUDFORMATION` enum value to the request property `iac_type`
  - added the new `TERRAFORM` enum value to the request property `iac_type`
  - …1 more
- **2023-02-28** (v1) `a59c1a86a96d` — 5 breaking, 2 warning, 5 info
  - added `#/components/schemas/IacType` to the `iac_type` request property `allOf` list
  - the request property `mapping_file` became required
  - removed the enum value `CLOUDFORMATION` of the request property `iac_type`
  - removed the enum value `TERRAFORM` of the request property `iac_type`
  - …8 more

[Change history](https://skmtc.dev/iriusrisk/apis/startleft-api/changes/api/v1/startleft/iac/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)
