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

Create a project template from a project

Triggers asynchronous creation of a project template from a project and returns a job representing the template creation process. Supply name and public, and specify either team for an organization project or workspace for a workspace project. Poll the returned job to monitor template creation.

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

1 parameter · 1 body field
opt_fieldsarray<string>optional
A comma-separated list of job and created-resource properties to include in the response, including nested properties such as `new_project_template.name`.

Inputs for creating a project template, including its name, visibility, and destination team or workspace.

dataobjectoptional
The template creation data.

6 status codes
201Returns a job object for the asynchronous project template creation process, including its identifier, status, and any resulting resources.
dataobjectoptional
A *job* is an object representing a process that handles asynchronous work.
400Returned when a parameter is missing or malformed, or the request syntax is invalid.
errorsarray<object>optional
401Returned when a valid authentication token is not provided.
errorsarray<object>optional
403Returned when the authenticated user cannot access the project or perform the template 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 request from completing.
errorsarray<object>optional

Error handling

A 400 is returned when the request is missing or malformed, a 401 when no valid authentication token is provided, and a 403 when access is denied. A 404 is returned when the project or action does not exist, and a 500 indicates a server-side failure. Include name and public; provide team or workspace according to where the project exists, but do not use both for the same project.