---
title: "Duplicate an existing Agent Policy"
method: POST
path: "/policies/agent/{id}/duplicate"
tags: ["policy"]
---

# Duplicate an existing Agent Policy

`POST /policies/agent/{id}/duplicate`

## Request body

- PolicyDuplicateReqSchema
  - `name` string — A unique name label

## Response `201`

Policy object

- PolicyObjSchema
  - `id` string, uuid, required — Unique identifier (UUID)
  - `name` string — A unique name label
  - `description` string — User description of this Policy
  - `tags` object — User defined key/values for organization and searching
  - `backend` string — The policy backend to use. Cannot change once created.
  - `ts_created` string, date-time — Timestamp of creation
  - `version` integer — A monotonically increasing counter starting at 0 on creation and increasing with each policy update.
  - `policy` object — Agent backend specific policy data in json format
  - `format` string — Policy text format needed to specify when a policy was created in yaml format.
  - `policy_data` string — Agent backend specific policy data in yaml format

## Other responses

- `400` — Failed due to malformed JSON.
- `404` — A non-existent entity request.
- `500` — Unexpected server-side error occurred.

## Changes

- **2026-07-17** `d95ee7691efb` — 1 breaking
  - added the new required `header` request parameter `Authorization` to all path's operations
- **2022-10-04** `ce59b3bdec00` — 1 breaking
  - added the new required `header` request parameter `Bearer authorization` to all path's operations
- **2022-05-09** `1ff9ad0b942f` — 1 info
  - endpoint added
- **2021-06-29** `e95a4da3dd7a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/orb-community/apis/orb-policies/changes/policies/agent/:id/duplicate/post.md)

---

[API](https://skmtc.dev/orb-community/apis/orb-policies.md) · [All operations](https://skmtc.dev/orb-community/apis/orb-policies/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orb-community/orb-policies/revisions/d95ee7691efb/schema)
