Custom Plugin Schemas

Create or update a custom plugin schema

Create or update an individual custom plugin schema.

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

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
  }
}

Changes

Changed in 3 of the 52 revisions of this API.71910

    • the response property item became nullable for the status 200

      response-property-became-nullable

    • the response property item/lua_schema became nullable for the status 200

      response-property-became-nullable

    • the response property item/name became nullable for the status 200

      response-property-became-nullable

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the non-success response with the status 400

      response-non-success-status-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 60ce7598bbd04199See the full diff
    • the response's body type/format changed from object/ to / for status 401

      response-body-type-changed

    • media type application/problem+json was changed to a more general media type application/json for the response status 401

      response-media-type-name-generalized

    • media type application/problem+json was changed to a more general media type application/json for the response status 403

      response-media-type-name-generalized

    • media type application/problem+json was changed to a more general media type application/json for the response status 404

      response-media-type-name-generalized

    • removed the optional property allOf[subschema #2]/detail from the response with the 401 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/detail from the response with the 403 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/detail from the response with the 404 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/instance from the response with the 401 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/instance from the response with the 403 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/instance from the response with the 404 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/status from the response with the 401 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/status from the response with the 403 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/status from the response with the 404 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/title from the response with the 401 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/title from the response with the 403 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/title from the response with the 404 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/type from the response with the 401 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/type from the response with the 403 status

      response-optional-property-removed

    • removed the optional property allOf[subschema #2]/type from the response with the 404 status

      response-optional-property-removed

    • removed the optional property detail from the response with the 401 status

      response-optional-property-removed

    • removed the optional property instance from the response with the 401 status

      response-optional-property-removed

    • removed the optional property status from the response with the 401 status

      response-optional-property-removed

    • removed the optional property title from the response with the 401 status

      response-optional-property-removed

    • added KonnectCPLegacyBaseError to the response body allOf list for the response status 401

      response-body-all-of-added

    • added KonnectCPLegacyBaseError to the response body allOf list for the response status 403

      response-body-all-of-added

    • added KonnectCPLegacyBaseError to the response body allOf list for the response status 404

      response-body-all-of-added

    • removed BaseError from the response body allOf list for the response status 401

      response-body-all-of-removed

    • removed BaseError from the response body allOf list for the response status 403

      response-body-all-of-removed

    • removed BaseError from the response body allOf list for the response status 404

      response-body-all-of-removed

    • added the optional property allOf[subschema #2]/message to the response with the 401 status

      response-optional-property-added

    • added the optional property allOf[subschema #2]/message to the response with the 403 status

      response-optional-property-added

    • added the optional property allOf[subschema #2]/message to the response with the 404 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog