---
title: "Create a deployment version"
method: POST
path: "/v1/workspaces/{workspaceId}/deployments/{deploymentId}/versions"
---

# Create a deployment version

`POST /v1/workspaces/{workspaceId}/deployments/{deploymentId}/versions`

## Path parameters

- `workspaceId` string, required
- `deploymentId` string, required

## Request body

- CreateDeploymentVersionRequest
  - `config` object
  - `createdAt` string, date-time
  - `dependencies` object — Map of dependency deployment ID to a CEL version selector evaluated against that deployment's current release on the same resource. Inserted atomically with the version so reconciliation cannot fire before edges are attached.
  - `jobAgentConfig` object
  - `metadata` object
  - `name` string, required
  - `status` 'unspecified' | 'building' | 'ready' | 'failed' | 'rejected', required
  - `tag` string, required

## Response `200`

Deployment version created

- DeploymentVersion
  - `config` object, required
  - `createdAt` string, date-time, required
  - `deploymentId` string, required
  - `id` string, required
  - `jobAgentConfig` object, required
  - `message` string
  - `metadata` object
  - `name` string, required
  - `status` 'unspecified' | 'building' | 'ready' | 'failed' | 'rejected', required
  - `tag` string, required

## Other responses

- `400` — Invalid request
- `404` — Resource not found

## Changes

> 50 revisions in range; 1 could not be searched.

- **2026-04-30** `6b0f8eb6483e` — 1 breaking, 3 info
  - removed the success response with the status `202`
  - added the new optional request property `dependencies`
  - added the non-success response with the status `404`
  - added the success response with the status `200`
- **2026-02-19** `e61389fc98ac` — 1 breaking, 1 warning, 2 info
  - removed the success response with the status `200`
  - removed the request property `dependencies`
  - removed the non-success response with the status `404`
  - added the success response with the status `202`

[Change history](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/changes/v1/workspaces/:workspaceId/deployments/:deploymentId/versions/post.md)

---

[API](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api.md) · [All operations](https://skmtc.dev/ctrlplanedev/apis/ctrlplane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ctrlplanedev/ctrlplane-api/revisions/156e0d264995/schema)
