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 2 of the 75 revisions of this API.91912

    • the response property became nullable for the status

      response-property-became-nullable

    • the response property / became nullable for the status

      response-property-became-nullable

    • the response property / became nullable for the status

      response-property-became-nullable

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

  • 0aead68de7b061912See the full diff
    • the response's body type changed from object to no type for status

      response-body-type-changed

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

      response-media-type-name-generalized

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

      response-media-type-name-generalized

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

      response-media-type-name-generalized

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

      response-media-type-name-generalized

    • removed the required property / from the response with the status

      response-required-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

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

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

    • removed the optional property from the response with the status

      response-optional-property-removed

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

      response-body-all-of-added

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

      response-body-all-of-added

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

      response-body-all-of-added

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

      response-body-all-of-added

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

      response-body-all-of-removed

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

      response-body-all-of-removed

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

      response-body-all-of-removed

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

      response-body-all-of-removed

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property / to the response with the status

      response-optional-property-added

    • added the optional property / to the response with the status

      response-optional-property-added

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