---
title: "Import actions from OpenAPI spec"
method: PUT
path: "/actions/import"
---

# Import actions from OpenAPI spec

`PUT /actions/import`

Upload an OpenAPI specification file (v2, v3, or v3.1; YAML or JSON). Actions are created for each operation in the spec. Previous imports from the same spec are replaced.

## Request body

- FileUploadDto, nullable
  - `file` string, binary, required — The file to upload. 5MB max.

## Response `200`

Default Response

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/open/apis/opencx-api.md) · [All operations](https://skmtc.net/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open/opencx-api/versions/57b06b52302d/schema)
