arazzo: 1.0.1
info:
title: Asana Create a Team With a First Project
summary: Create a team in an organization and stand up its first project.
description: >-
A team setup flow. The workflow creates a team within an organization
workspace and then creates a first project under that new team. Each request
is written inline so the setup can be read and executed without opening the
underlying OpenAPI description.
version: 1.0.0
x-realizes-capability-ids:
- BC-900.30
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-900.30
capability_name: Project Management
spec: asana-projects-api-openapi.yml
confidence: 0.85
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: projectsApi
url: ../openapi/asana-projects-api-openapi.yml
type: openapi
- name: teamsApi
url: ../openapi/asana-teams-api-openapi.yml
type: openapi
workflows:
- workflowId: create-team-with-project
summary: Create a team and its first project.
description: >-
Creates a team in an organization, then creates a project under it.
inputs:
type: object
required:
- organizationGid
- teamName
- projectName
properties:
organizationGid:
type: string
description: Organization (workspace) gid the team belongs to.
teamName:
type: string
description: Name of the team to create.
teamDescription:
type: string
description: Optional description for the team.
projectName:
type: string
description: Name of the first project to create under the team.
steps:
- stepId: createTeam
description: Create the team in the organization.
operationId: $sourceDescriptions.teamsApi.createTeam
requestBody:
contentType: application/json
payload:
data:
name: $inputs.teamName
description: $inputs.teamDescription
organization: $inputs.organizationGid
successCriteria:
- condition: $statusCode == 201
outputs:
teamGid: $response.body#/data/gid
- stepId: createProject
description: Create the first project under the new team.
operationId: $sourceDescriptions.projectsApi.createProjectForTeam
parameters:
- name: team_gid
in: path
value: $steps.createTeam.outputs.teamGid
requestBody:
contentType: application/json
payload:
data:
name: $inputs.projectName
team: $steps.createTeam.outputs.teamGid
successCriteria:
- condition: $statusCode == 201
outputs:
projectGid: $response.body#/data/gid
outputs:
teamGid: $steps.createTeam.outputs.teamGid
projectGid: $steps.createProject.outputs.projectGid
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.