DevZero Logo
DevZero

Create Team Recipe V2

Create a recipe for a team

POST
/v2/teams/{team_id}/recipes
/v2/teams/{team_id}/recipes

Request Body

application/jsonRequired

create team recipe body

name
Required
string

Name of recipe

Minimum length: 1

recipestring

recipe contents, either this field or 'repos' may be present

reposarray<string>

the repos with which to start the recipe, either this field or 'recipe' may be present

Header Parameters

Authorization
Required
string

Value: "Bearer <token>"; visit the "User Settings" page in the DevZero dashboard to generate a token

Path Parameters

team_id
Required
string

ID of team

curl -X POST "https://api.devzero.io/backend/v0/v2/teams/string/recipes" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "recipe": "string",
    "repos": [
      "string"
    ]
  }'

created recipe

{
  "created_at": "2019-08-24T14:15:22Z",
  "id": "string",
  "latest_recipe_summary": {
    "cpu": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "memory": "string",
    "name": "string",
    "repos": [
      "string"
    ],
    "storage": "string"
  },
  "launch_version_id": "string",
  "name": "string",
  "recipe_shell": "string",
  "recipe_versions": [
    {
      "build": {
        "build_step_checks": [
          {
            "command": "string",
            "completed_at": "string",
            "error": "string",
            "is_cached": true,
            "is_user_step": true,
            "last_updated": "string",
            "logsrv_id": "string",
            "name": "string",
            "start_time": "string",
            "status": "pending",
            "step_id": "string"
          }
        ],
        "created_at": "2019-08-24T14:15:22Z",
        "id": "string",
        "modified_at": "2019-08-24T14:15:22Z",
        "recipe_id": "string",
        "recipe_name": "string",
        "recipe_version_id": "string",
        "status": "Not Started",
        "team_id": "string",
        "user_id": "string"
      },
      "created_at": "2019-08-24T14:15:22Z",
      "id": "string",
      "recipe": "string",
      "recipe_defaults": "string",
      "team_id": "string",
      "user": {
        "default_region": "string",
        "default_region_name": "string",
        "dora_connection_ids": [
          "string"
        ],
        "dxi_onboarding_checklist": {
          "analyze_own_code": "SKIPPED",
          "development_process_bottlenecks": "SKIPPED",
          "devzero_cli": "SKIPPED",
          "github_token": "SKIPPED",
          "is_dora_repository_connected": true
        },
        "email": "user@example.com",
        "given_name": "string",
        "id": "string",
        "linked_vcss": [
          {
            "link_metadata": "string",
            "vsc_uri": "string"
          }
        ],
        "onboarding_checklist": {
          "has_completed_onboarding": true,
          "has_completed_onboarding_checklist": true,
          "has_completed_recipe_quick_starters": true,
          "has_created_recipe": true,
          "has_dismissed_quickstart": true,
          "has_dismissed_recipe_callout": true,
          "has_forked_quickstart": true,
          "has_launched_workspace": true,
          "has_seen_onboarding_recipe_modal": true,
          "onboarding_path": "undefined"
        },
        "sub": "string",
        "teams": [
          {
            "is_owner": true,
            "name": "string",
            "permissions": "string",
            "team_id": "string",
            "user_id": "string"
          }
        ],
        "timezone": "string",
        "user_scoped_recipe": "string"
      }
    }
  ],
  "team_id": "string",
  "user": {
    "default_region": "string",
    "default_region_name": "string",
    "dora_connection_ids": [
      "string"
    ],
    "dxi_onboarding_checklist": {
      "analyze_own_code": "SKIPPED",
      "development_process_bottlenecks": "SKIPPED",
      "devzero_cli": "SKIPPED",
      "github_token": "SKIPPED",
      "is_dora_repository_connected": true
    },
    "email": "user@example.com",
    "given_name": "string",
    "id": "string",
    "linked_vcss": [
      {
        "link_metadata": "string",
        "vsc_uri": "string"
      }
    ],
    "onboarding_checklist": {
      "has_completed_onboarding": true,
      "has_completed_onboarding_checklist": true,
      "has_completed_recipe_quick_starters": true,
      "has_created_recipe": true,
      "has_dismissed_quickstart": true,
      "has_dismissed_recipe_callout": true,
      "has_forked_quickstart": true,
      "has_launched_workspace": true,
      "has_seen_onboarding_recipe_modal": true,
      "onboarding_path": "undefined"
    },
    "sub": "string",
    "teams": [
      {
        "is_owner": true,
        "name": "string",
        "permissions": "string",
        "team_id": "string",
        "user_id": "string"
      }
    ],
    "timezone": "string",
    "user_scoped_recipe": "string"
  }
}