Asana
  1. Projects
Asana
  • Attachments
    • Delete an attachment
      DELETE
    • Get an attachment
      GET
    • Get attachments for a task
      GET
    • Upload an attachment
      POST
  • Batch API
    • Submit parallel requests
      POST
  • Custom Fields
    • Create a custom field
      POST
    • Delete a custom field
      DELETE
    • Get a custom field
      GET
    • Update a custom field
      PUT
    • Create an enum option
      POST
    • Reorder a custom field's enum
      POST
    • Update an enum option
      PUT
    • Get a workspace's custom fields
      GET
  • Events
    • Get events on a resource
  • 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
    • Get a job by id
  • Organization Exports
    • Create an organization export request
    • Get details on an org export request
  • Teams
    • Get teams in an organization
    • Create a team
    • Get a team
    • Add a user to a team
    • Remove a user from a team
    • Get teams for a user
  • Portfolio Memberships
    • Get multiple portfolio memberships
    • Get a portfolio membership
    • Get memberships from a portfolio
  • Portfolios
    • Get multiple portfolios
    • Create a portfolio
    • Delete a portfolio
    • Get a portfolio
    • Update a portfolio
    • Add a custom field to a portfolio
    • Add a portfolio item
    • Add users to a portfolio
    • Get portfolio items
    • Remove a custom field from a portfolio
    • Remove a portfolio item
    • Remove users from a portfolio
  • Custom Field Settings
    • Get a portfolio's custom fields
    • Get a project's custom fields
  • Project Memberships
    • Get a project membership
    • Get memberships from a project
  • Project Statuses
    • Delete a project status
    • Get a project status
    • Get statuses from a project
    • Create a project status
  • Projects
    • Get multiple projects
      GET
    • Create a project
      POST
    • Delete a project
      DELETE
    • Get a project
      GET
    • Update a project
      PUT
    • Add a custom field to a project
      POST
    • Add followers to a project
      POST
    • Add users to a project
      POST
    • Duplicate a project
      POST
    • Remove a custom field from a project
      POST
    • Remove followers from a project
      POST
    • Remove users from a project
      POST
    • Get task count of a project
      GET
    • Get projects a task is in
      GET
    • Get a team's projects
      GET
    • Create a project in a team
      POST
    • Get all projects in a workspace
      GET
    • Create a project in a workspace
      POST
  • Sections
    • Get sections in a project
    • Create a section in a project
    • Move or Insert sections
    • Delete a section
    • Get a section
    • Update a section
    • Add task to section
  • 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
    • Delete a story
    • Get a story
    • Update a story
    • Get stories from a task
    • Create a story on a task
  • Tags
    • Get multiple tags
    • Create a tag
    • Delete a tag
    • Get a tag
    • Update a tag
    • Get a task's tags
    • Get tags in a workspace
    • Create a tag in a workspace
  • Team Memberships
    • Get team memberships
    • Get a team membership
    • Get memberships from a team
    • Get memberships from a user
  • Users
    • Get users in a team
    • Get multiple users
    • Get a user
    • Get a user's favorites
    • Get users in a workspace or organization
  • Time Periods
    • Get time periods
    • Get a time period
  • User Task Lists
    • Get a user task list
    • Get a user's task list
  • Workspace Memberships
    • Get workspace memberships for a user
    • Get a workspace membership
    • Get the workspace memberships for a workspace
  • Webhooks
    • Get multiple webhooks
    • Establish a webhook
    • Delete a webhook
    • Get a webhook
  • Workspaces
    • Get multiple workspaces
    • Get a workspace
    • Update a workspace
    • Add a user to a workspace or organization
    • Remove a user from a workspace or organization
  • Typeahead
    • Get objects via typeahead
  1. Projects

Duplicate a project

POST
/projects/{project_gid}/duplicate
Projects
Creates and returns a job that will asynchronously handle the duplication.
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 '{
    "data": {
        "include": [
            "members",
            "task_notes"
        ],
        "name": "New Project Name",
        "schedule_dates": {
            "due_on": "2019-05-21",
            "should_skip_weekends": true,
            "start_on": "2019-05-21"
        },
        "team": "12345"
    }
}'
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
The elements that will be duplicated to the new project. Tasks are always included.
Allowed values:
membersnotesformstask_notestask_assigneetask_subtaskstask_attachmentstask_datestask_dependenciestask_followerstask_tagstask_projects
Example:
["members","task_notes"]
name
string 
required
The name of the new project.
Example:
New Project Name
schedule_dates
object 
optional
A dictionary of options to auto-shift dates. task_dates must be included to use this option. Requires either start_on or due_on, but not both.
team
string 
optional
Sets the team of the new project. If team is not defined, the new project will be in the same team as the the original project.
Example:
12345
Examples

Responses

🟢201Successfully created the job to handle duplication.
application/json
Body
data
object (JobCompact) 
optional
A job is an object representing a process that handles asynchronous work.
gid
string 
read-onlyoptional
Globally unique identifier of the resource, as a string.
Example:
12345
resource_type
string 
read-onlyoptional
The base type of this resource.
Example:
task
new_project
object 
ProjectCompact
optional
A project represents a prioritized list of tasks in Asana or a board with columns of tasks represented as cards. It exists in a single workspace or organization and is accessible to a subset of users in that workspace or organization, depending on its permissions.
new_task
object 
TaskCompact
optional
The task is the basic object around which many operations in Asana are centered.
resource_subtype
string 
read-onlyoptional
The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning.
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
Previous
Add users to a project
Next
Remove a custom field from a project
Built with