Skip to main content
POST
/
projects
/
v1
Create project
curl --request POST \
  --url https://api.case.dev/projects/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "sourceType": "github",
  "description": "<string>",
  "githubRepo": "<string>",
  "githubBranch": "main",
  "thurgoodSessionId": "<string>",
  "s3SourceBucket": "<string>",
  "s3SourcePrefix": "<string>",
  "framework": "<string>",
  "buildCommand": "<string>",
  "installCommand": "<string>",
  "startCommand": "<string>",
  "rootDirectory": "./",
  "defaultVcpu": "0.25 vCPU",
  "defaultMemory": "0.5 GB"
}
'

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Body

application/json
name
string
required

Project name

sourceType
enum<string>
required
Available options:
github,
thurgood
description
string

Project description

githubRepo
string

GitHub repo (owner/repo)

githubBranch
string
default:main
thurgoodSessionId
string
s3SourceBucket
string
s3SourcePrefix
string
framework
string
buildCommand
string
installCommand
string
startCommand
string
rootDirectory
string
default:./
defaultVcpu
string
default:0.25 vCPU
defaultMemory
string
default:0.5 GB

Response

Project created