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

Changes

Changed in 4 of the 52 revisions of this API.102213

    • the response property item became nullable for the status 201

      response-property-became-nullable

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

      response-property-became-nullable

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

      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

  • 60ce7598bbd061912See 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 400

      response-media-type-name-generalized

    • 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 409

      response-media-type-name-generalized

    • removed the required property allOf[subschema #2]/invalid_parameters from the response with the 400 status

      response-required-property-removed

    • 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 409 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 409 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 409 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 409 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 409 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 400

      response-body-all-of-added

    • 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 409

      response-body-all-of-added

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

      response-body-all-of-removed

    • 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 409

      response-body-all-of-removed

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

      response-optional-property-added

    • 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 409 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

    • added the new missing_reference enum value to the allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterStandard]/rule response property for the response status 400

      response-property-enum-value-added

  • 08ead66e9ebb121See the full diff
    • added InvalidParameterMaximumLength to the allOf[subschema #2]/invalid_parameters/items/ response property oneOf list for the response status 400

      response-property-one-of-added

    • added the new min enum value to the allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterMinimumLength]/rule response property for the response status 400

      response-property-enum-value-added

    • added the new min_items enum value to the allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterMinimumLength]/rule response property for the response status 400

      response-property-enum-value-added

    • removed the max_length enum value from the allOf[subschema #2]/invalid_parameters/items/oneOf[InvalidParameterStandard]/rule response property for the response status 400

      response-property-enum-value-removed

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