---
title: "Upsert a Cloned Plugin"
method: PUT
path: "/cloned-plugins/{ClonedPluginIdOrName}"
tags: ["Cloned Plugins"]
---

# Upsert a Cloned Plugin

`PUT /cloned-plugins/{ClonedPluginIdOrName}`

Create or Update Cloned Plugin using ID or name.

## Request body

- ClonedPlugin
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `id` string, nullable — A string representing a UUID (universally unique identifier).
  - `name` string, required — The name to associate with the cloned plugin. Consider using a distinct prefix for cloned plugins to avoid naming conflicts with new bundled plugins in future Kong releases.
  - `priority` integer, nullable — The plugin execution priority. If not set, it will inherit the priority of the referenced plugin.
  - `ref` string, required — The name of the base plugin that this cloned plugin references. This plugin must be cloneable.
  - `tags` string[], nullable — A set of strings representing tags.
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Response `200`

Successfully upserted Cloned Plugin

- ClonedPlugin
  - `created_at` integer, nullable — Unix epoch when the resource was created.
  - `id` string, nullable — A string representing a UUID (universally unique identifier).
  - `name` string, required — The name to associate with the cloned plugin. Consider using a distinct prefix for cloned plugins to avoid naming conflicts with new bundled plugins in future Kong releases.
  - `priority` integer, nullable — The plugin execution priority. If not set, it will inherit the priority of the referenced plugin.
  - `ref` string, required — The name of the base plugin that this cloned plugin references. This plugin must be cloneable.
  - `tags` string[], nullable — A set of strings representing tags.
  - `updated_at` integer, nullable — Unix epoch when the resource was last updated.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.net/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/28b1f8a59cdc/schema)
