Skip to main content
PATCH
/
v1
/
projects
/
{projectId}
Update a project
curl --request PATCH \
  --url https://api.alpic.ai/v1/projects/{projectId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "sourceRepository": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "teamId": "<string>",
  "sourceRepository": "<string>",
  "runtime": "python3.13",
  "transport": "stdio",
  "rootDirectory": "<string>",
  "buildCommand": "<string>",
  "buildOutputDir": "<string>",
  "installCommand": "<string>",
  "startCommand": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "productionEnvironment": {
    "id": "<string>",
    "name": "<string>",
    "mcpServerUrl": "<string>",
    "latestDeployment": {
      "id": "<string>",
      "status": "ongoing",
      "sourceCommitId": "<string>",
      "sourceCommitMessage": "<string>",
      "completedAt": "2023-11-07T05:31:56Z"
    }
  },
  "environments": [
    {
      "id": "<string>",
      "name": "<string>",
      "sourceBranch": "<string>",
      "mcpServerUrl": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "projectId": "<string>",
      "latestDeployment": {
        "id": "<string>",
        "status": "ongoing",
        "sourceCommitId": "<string>",
        "sourceCommitMessage": "<string>",
        "completedAt": "2023-11-07T05:31:56Z"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer token for authentication. Use an API key from the API Keys page in team settings, or an OAuth access token.

Path Parameters

projectId
string
required

The ID of the project

Body

application/json
name
string

The new name for the project

Required string length: 1 - 100
sourceRepository
string | null

The source repository to connect to the project

Response

The project has been updated successfully

id
string
required
name
string
required
teamId
string
required
sourceRepository
string | null
required
runtime
enum<string>
required
Available options:
python3.13,
python3.14,
node22,
node24
transport
enum<string> | null
required
Available options:
stdio,
sse,
streamablehttp
rootDirectory
string | null
required
buildCommand
string | null
required
buildOutputDir
string | null
required
installCommand
string | null
required
startCommand
string | null
required
createdAt
string<date-time>
required
productionEnvironment
object
required
environments
object[]
required