DevZero Logo
DevZero

Create Bucket

Create a bucket for a team

POST
/v2/teams/{team_id}/storage/buckets
/v2/teams/{team_id}/storage/buckets

Request Body

application/jsonRequired

create bucket body

created_byobject

General user object

id
Required
string

id of bucket

name_prefixBucket name prefix | null

Bucket name, will be used as a prefix

Maximum length: 30Pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"

region
Required
object

General region object

statusstring

status of bucket

Value in: "Creating" | "Available" | "Error"

team_id
Required
string

id for team which owns the bucket

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/storage/buckets" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "created_by": {
      "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"
    },
    "id": "string",
    "name_prefix": null,
    "region": {
      "id": "string",
      "latitude": 0,
      "longitude": 0,
      "name": "string",
      "provided_by": "string"
    },
    "status": "Creating",
    "team_id": "string"
  }'

created bucket

{
  "created_by": {
    "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"
  },
  "id": "string",
  "name_prefix": null,
  "region": {
    "id": "string",
    "latitude": 0,
    "longitude": 0,
    "name": "string",
    "provided_by": "string"
  },
  "status": "Creating",
  "team_id": "string"
}