curl --request PATCH \
--url https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"components": {},
"cpu": 123,
"desired_count": 123,
"ephemeral_storage": 123,
"evals": true,
"evals_on_push": true,
"memory": 123
}
'import requests
url = "https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config"
payload = {
"components": {},
"cpu": 123,
"desired_count": 123,
"ephemeral_storage": 123,
"evals": True,
"evals_on_push": True,
"memory": 123
}
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({
components: {},
cpu: 123,
desired_count: 123,
ephemeral_storage: 123,
evals: true,
evals_on_push: true,
memory: 123
})
};
fetch('https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config', 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.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config",
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([
'components' => [
],
'cpu' => 123,
'desired_count' => 123,
'ephemeral_storage' => 123,
'evals' => true,
'evals_on_push' => true,
'memory' => 123
]),
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.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config"
payload := strings.NewReader("{\n \"components\": {},\n \"cpu\": 123,\n \"desired_count\": 123,\n \"ephemeral_storage\": 123,\n \"evals\": true,\n \"evals_on_push\": true,\n \"memory\": 123\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.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"components\": {},\n \"cpu\": 123,\n \"desired_count\": 123,\n \"ephemeral_storage\": 123,\n \"evals\": true,\n \"evals_on_push\": true,\n \"memory\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config")
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 \"components\": {},\n \"cpu\": 123,\n \"desired_count\": 123,\n \"ephemeral_storage\": 123,\n \"evals\": true,\n \"evals_on_push\": true,\n \"memory\": 123\n}"
response = http.request(request)
puts response.read_bodyUpdate Config
Update deploy configuration for an environment, including per-component overrides.
curl --request PATCH \
--url https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"components": {},
"cpu": 123,
"desired_count": 123,
"ephemeral_storage": 123,
"evals": true,
"evals_on_push": true,
"memory": 123
}
'import requests
url = "https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config"
payload = {
"components": {},
"cpu": 123,
"desired_count": 123,
"ephemeral_storage": 123,
"evals": True,
"evals_on_push": True,
"memory": 123
}
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({
components: {},
cpu: 123,
desired_count: 123,
ephemeral_storage: 123,
evals: true,
evals_on_push: true,
memory: 123
})
};
fetch('https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config', 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.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config",
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([
'components' => [
],
'cpu' => 123,
'desired_count' => 123,
'ephemeral_storage' => 123,
'evals' => true,
'evals_on_push' => true,
'memory' => 123
]),
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.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config"
payload := strings.NewReader("{\n \"components\": {},\n \"cpu\": 123,\n \"desired_count\": 123,\n \"ephemeral_storage\": 123,\n \"evals\": true,\n \"evals_on_push\": true,\n \"memory\": 123\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.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"components\": {},\n \"cpu\": 123,\n \"desired_count\": 123,\n \"ephemeral_storage\": 123,\n \"evals\": true,\n \"evals_on_push\": true,\n \"memory\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.timbal.ai/orgs/{org_id}/projects/{project_id}/envs/{env_id}/config")
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 \"components\": {},\n \"cpu\": 123,\n \"desired_count\": 123,\n \"ephemeral_storage\": 123,\n \"evals\": true,\n \"evals_on_push\": true,\n \"memory\": 123\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Timbal API key. Obtain your API key from the Timbal platform settings. See Authentication for more information.
Body
Per-component overrides, keyed by "api" or a workforce
OrgsApps.id. Each entry sent REPLACES the stored entry wholesale
(it is the ground truth for that component); null removes the
entry so the component falls back to the env/app-level layering.
Keys not present in the map are left untouched.
Show child attributes
Show child attributes
Deploy-time eval gate (GitHub-Actions-style required check):
true arms it for every workforce component in this env — deploys
run the component's committed evals first and fail on a non-pass.
false disarms. Omit to leave unchanged. Per-component override
lives on OrgsApps.deploy_config.evals.
Push-triggered CI eval runs: true runs the eval suite of every
component with eval files on each push to this env's branch —
report-only (trigger_type = 'push' on the runs), gates nothing.
Per component, skipped when that component's deploy gate is armed
(env- or app-level evals), since the gate already runs those
evals on the push-triggered redeploy. Omit to leave unchanged.
Response
Configuration updated successfully