Cube Dev Build API

The Build API from Cube Dev — 1 operation(s) for build.

Operations 1

PUT /build/api/v1/deployments/{deploymentid}/branches/staging-environment PUT /build/api/v1/deployments/{deploymentId}/branches/staging-environment #

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-get-api-v1-deployments-deploymentid-id-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-post-api-v1-deployments-deploymentid-environments-environmentid-tok2-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-put-build-api-v1-deployments-deploymentid-branches-staging-environme2-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-post-api-v1-deployments-deploymentid-environments-environmentid-tok-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-post-api-v1-deployments-deploymentid-dashboard-exports-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-put-build-api-v1-deployments-deploymentid-branches-staging-environme-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-post-cubejs-api-v1-cubesql-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-post-api-v1-embed-generate-session-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-patch-dashboard-publicid-comments-commentid-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-post-dashboard-publicid-comments-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-get-dashboard-publicid-comments-mentionable-users-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-get-dashboard-publicid-comments-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/cube-dev/json-schema/cube-dev-post-dashboard-publicid-comments-commentid-resolve-response-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cube-dev:cube-dev-build-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cube-dev-build-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cube Dev Build API
  version: '2026-10-11'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-11: 23 operation(s) read from 8 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; Cube Dev has published no machine-readable contract that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 15
    documentation: 8
    pages-with-code: 8
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-11'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.cube.dev/reference/cli.md
  - https://docs.cube.dev/reference/control-plane-api
  - https://docs.cube.dev/reference/control-plane-api.md
  - https://docs.cube.dev/reference/core-data-apis/sql-api
  - https://docs.cube.dev/reference/core-data-apis/rest-api
  - https://docs.cube.dev/reference/embed-apis/generate-session
  - https://docs.cube.dev/reference/embed-apis/dashboard-comments
  - https://docs.cube.dev/reference/embed-apis/generate-session.md
servers:
- url: https://YOUR_CUBE_CLOUD_HOST
security:
- bearer: []
tags:
- name: Build
paths:
  /build/api/v1/deployments/{deploymentid}/branches/staging-environment:
    put:
      operationId: put_build_api_v1_deployments_deploymentid_branches_staging_environment
      tags:
      - Build
      summary: PUT /build/api/v1/deployments/{deploymentId}/branches/staging-environment
      x-source: https://docs.cube.dev/reference/control-plane-api
      parameters:
      - name: deploymentid
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PutBuildApiV1DeploymentsDeploymentidBranchesStagingEnvironme'
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PutBuildApiV1DeploymentsDeploymentidBranchesStagingEnvironme2'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X PUT  -H \"Authorization: Bearer YOUR_API_KEY\"  -H \"Content-Type: application/json\"  -d '{\"branchName\": \"staging\", \"enabled\": true}'  \"https://YOUR_CUBE_CLOUD_HOST/build/api/v1/deployments/123/branches/staging-environment\" \n Example response: \n { \n \"data\" : { \n \"id\" : 456 , \n \"name\" : \"staging\" , \n \"parentBranch\" : \"main\" , \n \"lastHash\" : \"9f2c1ab\" , \n \"isStagingEnvironmentEnabled\" : true \n "
components:
  schemas:
    PutBuildApiV1DeploymentsDeploymentidBranchesStagingEnvironme:
      type: object
      properties:
        branchName:
          type: string
        enabled:
          type: boolean
    PutBuildApiV1DeploymentsDeploymentidBranchesStagingEnvironme2:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
            parentBranch:
              type: string
            lastHash:
              type: string
            isStagingEnvironmentEnabled:
              type: boolean
  securitySchemes:
    bearer:
      type: http
      scheme: bearer