Action: Create a Project
Asana Operation
Last updated
{
"handle": "create-project",
"state": "inDev",
"meta": {
"short": "Create Project",
"description": "Creates a new project in Asana."
},
"input": [
{
"name": "name",
"type": "String",
"required": true,
"meta": {
"description": "Name of the project."
}
},
{
"name": "workspace",
"type": "String",
"required": true,
"meta": {
"description": "Workspace ID where the project will be created."
}
},
{
"name": "notes",
"type": "String",
"required": false,
"meta": {
"description": "Notes for the project."
}
},
{
"name": "public",
"type": "Boolean",
"required": false,
"meta": {
"description": "Whether the project is public to the workspace."
}
}
],
"output": [
{
"name": "projectId",
"type": "String",
"selector": ["data", "gid"],
"meta": {
"description": "ID of the created project."
}
},
{
"name": "projectName",
"type": "String",
"selector": ["data", "name"],
"meta": {
"description": "Name of the created project."
}
}
],
"steps": [
{
"type": "http",
"http": {
"method": "POST",
"path": "/projects",
"headers": {
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"data\":{\"name\":\"{{name}}\",\"workspace\":\"{{workspace}}\",\"notes\":\"{{notes}}\",\"public\":{{public}}}}",
"placeholders": [
{
"name": "accessToken",
"type": "String",
"description": "Asana API access token.",
"required": true
},
{
"name": "name",
"type": "String",
"description": "Name of the project.",
"required": true
},
{
"name": "workspace",
"type": "String",
"description": "Workspace ID where the project will be created.",
"required": true
},
{
"name": "notes",
"type": "String",
"description": "Notes for the project.",
"required": false
},
{
"name": "public",
"type": "Boolean",
"description": "Whether the project is public to the workspace.",
"required": false
}
]
}
}
}
]
}