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

---

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