---
title: "Duplicates a task by ID"
method: POST
path: "/api/v3/projects/{project_id}/tasks/{id}/duplicate"
tags: ["tasks"]
---

# Duplicates a task by ID

`POST /api/v3/projects/{project_id}/tasks/{id}/duplicate`

## Request

- Base URL: `https://client-api.us.fieldwire.com`
- URL: `https://client-api.us.fieldwire.com/api/v3/projects/{project_id}/tasks/{id}/duplicate`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, uuid, required
- `id` string, uuid, required

## Headers

- `Fieldwire-Version` string, date, required

## Request body

- TaskDuplicateInput: Schema for duplicating tasks
  - `id` string, uuid: ID of the entity
  - `creator_user_id` integer, required: ID of the user who created this entity
  - `last_editor_user_id` integer: ID of the user who most recently edited this entity
  - `owner_user_id` integer: ID of the user who owns the entity
  - `floorplan_id` string, uuid, nullable: ID of the floorplan the entity belongs to
  - `location_id` string, uuid, nullable: ID of the location the entity belongs to
  - `team_id` string, uuid, nullable: ID of the team the entity belongs to
  - `is_local` boolean: Indicates if task is positioned on floorplan
  - `name` string, nullable: Name of the entity
  - `due_date` string, date, nullable: Date when task is to be completed by
  - `cost_value` number, double, nullable: Monetary cost associated with the Task
  - `man_power_value` number, double, nullable: Numeric value representing estimated time in Man-power hours/day/month
  - `pos_x` integer, nullable: Horizontal pixels (from left of floorplan) of task pin's point
  - `pos_y` integer, nullable: Vertical pixels (from top of floorplan) of task pin's point
  - `pos_z` integer, nullable: Z coordinate of a task
  - `priority` integer: Priority of the task (1, 2, 3)
  - `device_created_at` string, date-time: Time when the device created the entity
  - `device_updated_at` string, date-time: Time when the device last updated the entity
  - `due_at` string, date-time, nullable: Datetime of when the Task is due
  - `end_at` string, date-time, nullable: Time when this task is marked as ending
  - `fixed_at` string, date-time, nullable: Datetime of when the Task is fixed
  - `start_at` string, date-time, nullable: Datetime of when the Task is to start
  - `verified_at` string, date-time, nullable: Time when task was verified
  - `status_id` string, uuid, nullable: Entity ID linking to the Status of the Task
  - `user_ids` integer[], nullable: All User IDs associated with this Task
  - `task_type_id` string, uuid, nullable: ID of the TaskType of the Task

## Response `201`

Successful response

- Task: Entity that denotes a task in a Fieldwire project
  - `id` string, uuid, required: ID of the entity
  - `creator_user_id` integer, required: ID of the user who created this entity
  - `last_editor_user_id` integer, required: ID of the user who most recently edited this entity
  - `owner_user_id` integer, required: ID of the user who owns the entity
  - `floorplan_id` string, uuid, nullable: ID of the floorplan the entity belongs to
  - `location_id` string, uuid, nullable: ID of the location the entity belongs to
  - `project_id` string, uuid, required: ID of the project this entity belongs to
  - `team_id` string, uuid, nullable: ID of the team the entity belongs to
  - `is_local` boolean, required: Indicates if task is positioned on floorplan
  - `is_private` boolean, required: A Boolean value indicating if Task is private to User
  - `name` string, nullable: Name of the entity
  - `due_date` string, date, nullable: Date when task is to be completed by
  - `cost_value` number, double, nullable: Monetary cost associated with the Task
  - `man_power_value` number, double, nullable: Numeric value representing estimated time in Man-power hours/day/month
  - `pos_x` integer, nullable: Horizontal pixels (from left of floorplan) of task pin's point
  - `pos_y` integer, nullable: Vertical pixels (from top of floorplan) of task pin's point
  - `pos_z` integer, nullable: Z coordinate of a task
  - `priority` integer, required: Priority of the task (1, 2, 3)
  - `sequence_number` integer, nullable: Unique sequential identifier of task on project
  - `created_at` string, date-time, required: Time when the server created the entity
  - `deleted_at` string, date-time, nullable: Time the server deleted the entity
  - `device_created_at` string, date-time, required: Time when the device created the entity
  - `device_updated_at` string, date-time, required: Time when the device last updated the entity
  - `due_at` string, date-time, nullable: Datetime of when the Task is due
  - `end_at` string, date-time, nullable: Time when this task is marked as ending
  - `fixed_at` string, date-time, nullable: Datetime of when the Task is fixed
  - `start_at` string, date-time, nullable: Datetime of when the Task is to start
  - `updated_at` string, date-time, required: Time when the server last updated the entity
  - `verified_at` string, date-time, nullable: Time when task was verified
  - `resolved_conflict` boolean, nullable, required: Specifies if PUT/PATCH request was rejected - do not store this field!
  - `status_id` string, uuid, nullable: Entity ID linking to the Status of the Task
  - `user_ids` integer[], nullable: All User IDs associated with this Task
  - `task_type_id` string, uuid, nullable: ID of the TaskType of the Task
  - `latest_component_device_updated_at` string, date-time, nullable, required: Time when the device last updated a component associated to the entity (bubble, check item, tag or CTA)

---

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