---
title: "Duplicate a Hub"
method: POST
path: "/v1/hub/{hub_id}/duplicate"
tags: ["Hub"]
---

# Duplicate a Hub

`POST /v1/hub/{hub_id}/duplicate`

Create a duplicate of an existing hub

## Path parameters

- `hub_id` string, uuid, required

## Request body

- DuplicateHub
  - `context` BaseRequestContext
    - `projectId` string, uuid
    - `processPublicId` string, uuid, nullable
    - `processSectionPublicId` string, uuid, nullable
    - `processResponsePublicId` string, uuid, nullable
  - `duplicatePermissions` boolean
  - `lockResource` boolean

## Response `201`

Hub duplication started successfully

## Other responses

- `403` — Not authorized to duplicate this hub
- `404` — Hub not found or hub has been deleted

## Changes

- **2025-07-05** `9c58c1c1e7e8` — 1 info
  - endpoint added
- **2025-07-05** `69960ee36427` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/morta-technology/apis/morta-api-reference/changes/v1/hub/:hub_id/duplicate/post.md)

---

[API](https://skmtc.dev/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.dev/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/revisions/9c58c1c1e7e8/schema)
