Custom Plugin Schemas

Create or update a custom plugin schema

Changed on

Create or update an individual custom plugin schema.

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

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

controlPlaneId, string uuid required
Example:9524ec7d-36d9-465d-a8c5-83a3c9390458

The UUID of your control plane. This variable is available in the Konnect manager.

name, string required
Example:myplugin

The custom plugin name

Request body

object required
lua_schema, string 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.

object required
item, object

Example response

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

Changes

    • info

      added the optional property code to the response with the status

    • info

      added the optional property code to the response with the status

    • info

      added the optional property code to the response with the status

    5 more changes in this revision