curl --request PATCH \
--url https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"gitRepo": "<string>",
"gitRef": "<string>",
"region": "<string>"
}
'import requests
url = "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}"
payload = {
"name": "<string>",
"gitRepo": "<string>",
"gitRef": "<string>",
"region": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', gitRepo: '<string>', gitRef: '<string>', region: '<string>'})
};
fetch('https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'gitRepo' => '<string>',
'gitRef' => '<string>',
'region' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"gitRepo\": \"<string>\",\n \"gitRef\": \"<string>\",\n \"region\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"gitRepo\": \"<string>\",\n \"gitRef\": \"<string>\",\n \"region\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"gitRepo\": \"<string>\",\n \"gitRef\": \"<string>\",\n \"region\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"runtimeClass": "scale-to-zero",
"region": "<string>",
"gitRepo": "<string>",
"gitRef": "<string>",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}Update
Update project settings: rename it, connect or disconnect a repository, or change the production branch or compute region. Renaming never changes the slug or the public URL. Region changes apply to the next deployment for always-on projects.
curl --request PATCH \
--url https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"gitRepo": "<string>",
"gitRef": "<string>",
"region": "<string>"
}
'import requests
url = "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}"
payload = {
"name": "<string>",
"gitRepo": "<string>",
"gitRef": "<string>",
"region": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', gitRepo: '<string>', gitRef: '<string>', region: '<string>'})
};
fetch('https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'gitRepo' => '<string>',
'gitRef' => '<string>',
'region' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"gitRepo\": \"<string>\",\n \"gitRef\": \"<string>\",\n \"region\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"gitRepo\": \"<string>\",\n \"gitRef\": \"<string>\",\n \"region\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/orgs/{orgId}/projects/{projectId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"gitRepo\": \"<string>\",\n \"gitRef\": \"<string>\",\n \"region\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"slug": "<string>",
"runtimeClass": "scale-to-zero",
"region": "<string>",
"gitRepo": "<string>",
"gitRef": "<string>",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The organization's id (UUID) or slug — either form is accepted.
The project's id (UUID) or slug — either form is accepted.
Body
New display name, 1-100 characters.
Repository to connect as "owner/repo" — pushes and pull requests there drive deploys and previews. Send null to disconnect.
^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$Production branch for push-to-deploy, 1-100 characters.
Compute region id for an always-on project (see regions.list). Scale-to-zero projects run globally and cannot set a region.
Response
The updated project.
^[a-z][a-z0-9-]{1,61}$scale-to-zero, always-on Where the app runs: a compute region id for always-on apps, "global" for scale-to-zero apps (they run on the global edge). Always-on projects can change regions with projects.update; the catalog lives at regions.list.
Connected repository as "owner/repo" — pushes and pull requests there drive deploys and previews; null when no repository is connected.
Production branch — pushes to it deploy automatically.
Public URL on the managed domain ("https://.korve.app").