---
title: "POST /v1/automation-rules/actions/copy"
method: POST
path: "/v1/automation-rules/actions/copy"
tags: ["Automation Rules"]
---

# POST /v1/automation-rules/actions/copy

`POST /v1/automation-rules/actions/copy`

## Request

- Base URL: `https://api.yardstick.team`
- URL: `https://api.yardstick.team/v1/automation-rules/actions/copy`
- Auth: HTTP bearer

POST /v1/automation-rules/actions/copy

**Required scopes:** `automation_rules:write`

## Headers

- `Idempotency-Key` string
- `X-Request-Id` string

## Request body

- object
  - `rule_id` string, required
  - `job_ids` string[]
  - `pipeline_ids` string[]

## Response `200`

Independent copies of one rule. Unmatched targets are copied off and flagged.

- object

## Other responses

- `400`: Invalid request
- `401`: Authentication failure
- `403`: Permission denied (scope or feature flag)
- `404`: Resource not found. The error uses the resource-specific code and param names the exact body field or path parameter that referenced it.
- `409`: Conflict: idempotency key reuse, or an enabled Update scheduling rule already covers these interview steps. An automation_rule_overlap error includes blocking_rule with its id, name and url.
- `429`: Rate limited
- `500`: Internal error

---

[API](https://skmtc.dev/yardstick/apis/yardstick-public-api.md) · [All operations](https://skmtc.dev/yardstick/apis/yardstick-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yardstick/apis/yardstick-public-api/revisions/35b5a6e88b35?raw)
