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

---

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