Codevisor Docs
Api reference

POST Projects Id Worktree Setups

POST/v1/projects/{id}/worktree-setups

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

id*string
sessionId?string|null
name?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/projects/string/worktree-setups" \  -H "Content-Type: application/json" \  -d '{    "id": "string"  }'
{  "worktreeId": "string",  "state": "running",  "worktree": {    "id": "string",    "projectId": "string",    "serverId": "string",    "name": "string",    "branch": "string",    "path": "string",    "createdAt": "string"  },  "message": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}