- Attachments
- Batch API
- Custom Fields
- Events
- Goals
- Get goals
- Create a goal
- Delete a goal
- Get a goal
- Update a goal
- Add a collaborator to a goal
- Add a subgoal to a parent goal
- Add a project/portfolio as supporting work for a goal.
- Get parent goals from a goal
- Remove a collaborator from a goal
- Remove a subgoal from a goal
- Remove a project/portfolio as supporting work for a goal.
- Create a goal metric
- Update a goal metric
- Get subgoals from a goal
- Get supporting work from a goal
- Jobs
- Organization Exports
- Teams
- Portfolio Memberships
- Portfolios
- Custom Field Settings
- Project Memberships
- Project Statuses
- Projects
- Get multiple projectsGET
- Create a projectPOST
- Delete a projectDELETE
- Get a projectGET
- Update a projectPUT
- Add a custom field to a projectPOST
- Add followers to a projectPOST
- Add users to a projectPOST
- Duplicate a projectPOST
- Remove a custom field from a projectPOST
- Remove followers from a projectPOST
- Remove users from a projectPOST
- Get task count of a projectGET
- Get projects a task is inGET
- Get a team's projectsGET
- Create a project in a teamPOST
- Get all projects in a workspaceGET
- Create a project in a workspacePOST
- Sections
- Tasks
- Get tasks from a project
- Get tasks from a section
- Get tasks from a tag
- Get multiple tasks
- Create a task
- Delete a task
- Get a task
- Update a task
- Set dependencies for a task
- Set dependents for a task
- Add followers to a task
- Add a project to a task
- Add a tag to a task
- Get dependencies from a task
- Get dependents from a task
- Duplicate a task
- Unlink dependencies from a task
- Unlink dependents from a task
- Remove followers from a task
- Remove a project from a task
- Remove a tag from a task
- Set the parent of a task
- Get subtasks from a task
- Create a subtask
- Get tasks from a user task list
- Search tasks in a workspace
- Stories
- Tags
- Team Memberships
- Users
- Time Periods
- User Task Lists
- Workspace Memberships
- Webhooks
- Workspaces
- Typeahead
Duplicate a project
POST
/projects/{project_gid}/duplicate
Projects
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.asana.com/api/1.0/projects//duplicate' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
201 - Example 1
{
"data": {
"gid": "12345",
"resource_type": "task",
"new_project": {
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy"
},
"new_task": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
},
"resource_subtype": "duplicate_task",
"status": "in_progress"
}
}
Request
Path Params
project_gid
string
required
Body Params application/json
data
object (ProjectDuplicateRequest)
optional
include
enum<string>
optional
Allowed values:
membersnotesformstask_notestask_assigneetask_subtaskstask_attachmentstask_datestask_dependenciestask_followerstask_tagstask_projects
Example:
["members","task_notes"]
name
string
required
Example:
New Project Name
schedule_dates
object
optional
task_dates
must be included to use this option. Requires either start_on
or due_on
, but not both.team
string
optional
Example:
12345
Examples
Responses
🟢201Successfully created the job to handle duplication.
application/json
Body
data
object (JobCompact)
optional
gid
string
read-onlyoptional
Example:
12345
resource_type
string
read-onlyoptional
Example:
task
new_project
object
ProjectCompact
new_task
object
TaskCompact
resource_subtype
string
read-onlyoptional
Example:
duplicate_task
status
enum<string>
read-onlyoptional
Allowed values:
not_startedin_progresscompletedfailed
Example:
in_progress
🟠400400
🟠401401
🟠403403
🟠404404
🔴500500
Modified at 2022-09-13 02:00:31