v61

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-018131,3812.6 MB
Custom Plugin Schemas

Upload custom plugin schema

Upload a custom plugin schema associated with a control plane.

post/v2/control-planes/{controlPlaneId}/core-entities/plugin-schemas

Request body

lua_schemastring required

The custom plugin schema; jq -Rs '.' schema.lua.

Example request

{
  "lua_schema": "return { name = \"myplugin\", fields = { { config = { type = \"record\", fields = { } } } } }"
}

Response

A response for a single custom plugin schema.

Example response

{
  "item": {
    "lua_schema": "return { name = \\\"myplugin\\\", fields = { { config = { type = \\\"record\\\", fields = { } } } } }",
    "name": "myplugin",
    "created_at": 1422386534,
    "updated_at": 1422412345
  }
}