Sample - Asana API
POST/projects/{project_gid}/duplicate

Duplicate a project

Triggers asynchronous duplication of a project and creates a job to manage the process. Supply the new project's name, and use include to select optional project elements for duplication. Poll the returned job resource to monitor the duplication status.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 1 body field
opt_fieldsarray<string>optional
Comma-separated response properties to include, including nested properties such as `new_project.name`; omit this parameter to use the default response fields.

Optional duplication configuration describing the new project's name and the elements to duplicate.

dataobjectoptional

6 status codes
201Returns the created asynchronous job, including its identifier, resource type, status, and any newly created portfolio, project, task, project template, graph export, or resource export resources.
dataobjectoptional
A *job* is an object representing a process that handles asynchronous work.
400Returned when a parameter is missing or malformed.
errorsarray<object>optional
401Returned when a valid authentication token is not provided.
errorsarray<object>optional
403Returned when the authenticated user does not have access to the project or the requested operation.
errorsarray<object>optional
404Returned when the requested action or project does not exist.
errorsarray<object>optional
500Returned when a server-side problem prevents the duplication job from being created.
errorsarray<object>optional

Error handling

A 400 is returned when a parameter is missing or malformed, including an invalid include or schedule_dates value. A 401 is returned when no valid authentication token is provided, and a 403 is returned when the authenticated user lacks access to the project or required projects:write scope. A 404 indicates that the project does not exist, while a 500 indicates a server-side failure.