---
title: "POST /processes/{id}/duplicate"
method: POST
path: "/processes/{id}/duplicate"
tags: ["Taskflow"]
---

# POST /processes/{id}/duplicate

`POST /processes/{id}/duplicate`

This is a shortcut class that will include all 6 resourceful actions part of the DRF ViewSets:
- list()
- retrieve()
- create()
- update()
- partial_update()
- destroy()

If you do not want to expose all 6 of these in your ViewSet, then use the CubeAuthenticatedViewSet and add the
appropriate mixins to it (see rest_framework.mixins). This will allow the api to behave appropriately and block
requests to unprocessable endpoints. Furthermore, it will make the drf_spectacular documentation be generated more
easily.

## Path parameters

- `id` string, required

## Headers

- `X-Company-ID` string, required

## Request body

- Process
  - `id` integer, required
  - `name` string, required
  - `description` string
  - `status` 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' — * `NOT_STARTED` - Not Started * `IN_PROGRESS` - In Progress * `COMPLETED` - Completed
  - `completed_at` string, date-time, nullable, required
  - `completed_by` integer, nullable, required
  - `created_by` integer, required
  - `modified_by` integer, nullable, required
  - `owner` integer

## Response `200`

- Process
  - `id` integer, required
  - `name` string, required
  - `description` string
  - `status` 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' — * `NOT_STARTED` - Not Started * `IN_PROGRESS` - In Progress * `COMPLETED` - Completed
  - `completed_at` string, date-time, nullable, required
  - `completed_by` integer, nullable, required
  - `created_by` integer, required
  - `modified_by` integer, nullable, required
  - `owner` integer

---

[API](https://skmtc.net/cubesoftware/apis/cube-api.md) · [All operations](https://skmtc.net/cubesoftware/apis/cube-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cubesoftware/cube-api/revisions/67d9f45bb99b/schema)
