---
title: "CreateLuaModule creates a Transformation Library (Lua module)."
method: POST
path: "/v1.1/transformation_library"
tags: ["ControlService"]
---

# CreateLuaModule creates a Transformation Library (Lua module).

`POST /v1.1/transformation_library`

The module can be used anywhere in the cluster that a user is writing an expression.

## Request body

- ProtobufControlpbV1CreateLuaModuleRequest
  - `luaModule` union
    - object, nullable
    - ProtobufStreamingpbV1LuaModule
      - `author` string
      - `body` string
      - `createdAt` string, date-time, nullable
      - `description` string
      - `name` string

## Response `200`

OK

- ProtobufControlpbV1CreateLuaModuleResponse
  - `luaModule` union
    - object, nullable
    - ProtobufStreamingpbV1LuaModule
      - `author` string
      - `body` string
      - `createdAt` string, date-time, nullable
      - `description` string
      - `name` string

## Other responses

- `4XX` — Something is wrong with your request such as missing or invalid data. Correct your request and try again.
- `5XX` — Internal server error. Try again later or reach out to MetaRouter support.

---

[API](https://skmtc.net/metarouter/apis/control-api.md) · [All operations](https://skmtc.net/metarouter/apis/control-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metarouter/control-api/versions/5afc05bfaaa2/schema)
