---
title: "Create or update a custom plugin schema"
method: PUT
path: "/v2/control-planes/{controlPlaneId}/core-entities/plugin-schemas/{name}"
tags: ["Custom Plugin Schemas"]
---

# Create or update a custom plugin schema

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

Create or update an individual custom plugin schema.

## Request body

- object
  - `lua_schema` string, required — The custom plugin schema; `jq -Rs '.' schema.lua`.

## Response `200`

A response for a single custom plugin schema.

- object
  - `item` object
    - `lua_schema` string — The custom plugin schema; `jq -Rs '.' schema.lua`.
    - `name` string — The custom plugin name determined by the custom plugin schema.
    - `created_at` integer — An ISO-8604 timestamp representation of custom plugin schema creation date.
    - `updated_at` integer — An ISO-8604 timestamp representation of custom plugin schema update date.

## Other responses

- `400` — Forbidden
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Forbidden

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/versions/f920f418f552/schema)
