---
title: "Create a workspace"
method: POST
path: "/repos/{repo_id}/workspaces"
tags: ["Repository Workspace Manipulation"]
---

# Create a workspace

`POST /repos/{repo_id}/workspaces`

Create a new workspace

## Request body

- NewWorkspace
  - `branch_id` string
  - `name` string
  - `commit_id` string

## Response `201`

Resource created

- NewResourceId
  - `id` string, required — The id of the newly created resource

## Other responses

- `409` — An error occurred
- `default` — An error occurred

---

[API](https://skmtc.dev/diversion/apis/diversion-core-api.md) · [All operations](https://skmtc.dev/diversion/apis/diversion-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/diversion/diversion-core-api/revisions/38a18aba804b/schema)
