---
title: "Duplicates a scenario, its secrets included: copying them asks for the right to update it, and to create one in its project"
method: POST
path: "/runtime/scenarios/{id}/duplicate"
tags: ["Runtime - Scenarios"]
---

# Duplicates a scenario, its secrets included: copying them asks for the right to update it, and to create one in its project

`POST /runtime/scenarios/{id}/duplicate`

## Request

- Base URL: `https://api.octoperf.com`
- URL: `https://api.octoperf.com/runtime/scenarios/{id}/duplicate`
- Auth: none declared

## Path parameters

- `id` string, required

## Response `201`

Created

- Scenario
  - `id` string, nullable
  - `userId` string, nullable
  - `projectId` string, nullable
  - `name` string
  - `description` string, nullable
  - `userProfiles` UserProfile[], nullable
    - `id` string, nullable
    - `name` string, nullable
    - `virtualUserId` string
    - `providerId` string
    - `location` string
    - `load` unknown
    - `memory` MemorySettings
      - `vuMb` number, double
    - `iterations` integer
    - `engine` unknown
  - `mode` 'STANDARD' | 'FUNCTIONAL', nullable
  - `created` string, date-time, nullable
  - `lastModified` string, date-time, nullable
  - `tags` string[], nullable

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests

## Changes

- **2026-11-03** `bc14ac2aa366`: 1 info
  - api operation id `P_4` removed and replaced with `L_3`
- **2026-11-03** `637a8f8ce8cf`: 1 info
  - api operation id `b_3` removed and replaced with `P_4`
- **2026-10-30** `fc0ab021d8d3`: 1 info
  - api operation id `U_1` removed and replaced with `b_3`
- **2026-10-29** `6fb7a9d5eb1c`: 1 info
  - api operation id `z` removed and replaced with `U_1`
- **2026-10-28** `6fc0f4ece308`: 1 info
  - api operation id `Y_5` removed and replaced with `z`

[Operation history](https://skmtc.dev/octoperf/apis/octoperf-api/changes/runtime/scenarios/:id/duplicate/post.md)

---

[API](https://skmtc.dev/octoperf/apis/octoperf-api.md) - [All operations](https://skmtc.dev/octoperf/apis/octoperf-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octoperf/apis/octoperf-api/revisions/bc14ac2aa366?raw)
