Update a database
curl --request PUT \
--url https://api.brimble.io/core/v1/projects/database/{projectId} \
--header 'Content-Type: application/json' \
--header 'x-brimble-key: <api-key>' \
--data '
{
"name": "<string>",
"configurations": {
"cpu": 7,
"memory": 15,
"storage": 25.25,
"diskSize": 75.5,
"volumeMount": "<string>",
"region": "<string>"
},
"password": "<string>",
"pgbouncerConfig": {
"defaultPoolSize": 50,
"maxDbConnections": 250,
"maxDbClientConnections": 2500,
"maxUserConnections": 250,
"maxClientConn": 5000,
"maxPreparedStatements": 5000,
"serverLifetime": 43230,
"serverIdleTimeout": 43205
},
"whitelistedIps": [
"<string>"
],
"public": true
}
'import requests
url = "https://api.brimble.io/core/v1/projects/database/{projectId}"
payload = {
"name": "<string>",
"configurations": {
"cpu": 7,
"memory": 15,
"storage": 25.25,
"diskSize": 75.5,
"volumeMount": "<string>",
"region": "<string>"
},
"password": "<string>",
"pgbouncerConfig": {
"defaultPoolSize": 50,
"maxDbConnections": 250,
"maxDbClientConnections": 2500,
"maxUserConnections": 250,
"maxClientConn": 5000,
"maxPreparedStatements": 5000,
"serverLifetime": 43230,
"serverIdleTimeout": 43205
},
"whitelistedIps": ["<string>"],
"public": True
}
headers = {
"x-brimble-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-brimble-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
configurations: {
cpu: 7,
memory: 15,
storage: 25.25,
diskSize: 75.5,
volumeMount: '<string>',
region: '<string>'
},
password: '<string>',
pgbouncerConfig: {
defaultPoolSize: 50,
maxDbConnections: 250,
maxDbClientConnections: 2500,
maxUserConnections: 250,
maxClientConn: 5000,
maxPreparedStatements: 5000,
serverLifetime: 43230,
serverIdleTimeout: 43205
},
whitelistedIps: ['<string>'],
public: true
})
};
fetch('https://api.brimble.io/core/v1/projects/database/{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.brimble.io/core/v1/projects/database/{projectId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'configurations' => [
'cpu' => 7,
'memory' => 15,
'storage' => 25.25,
'diskSize' => 75.5,
'volumeMount' => '<string>',
'region' => '<string>'
],
'password' => '<string>',
'pgbouncerConfig' => [
'defaultPoolSize' => 50,
'maxDbConnections' => 250,
'maxDbClientConnections' => 2500,
'maxUserConnections' => 250,
'maxClientConn' => 5000,
'maxPreparedStatements' => 5000,
'serverLifetime' => 43230,
'serverIdleTimeout' => 43205
],
'whitelistedIps' => [
'<string>'
],
'public' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-brimble-key: <api-key>"
],
]);
$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.brimble.io/core/v1/projects/database/{projectId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"configurations\": {\n \"cpu\": 7,\n \"memory\": 15,\n \"storage\": 25.25,\n \"diskSize\": 75.5,\n \"volumeMount\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"password\": \"<string>\",\n \"pgbouncerConfig\": {\n \"defaultPoolSize\": 50,\n \"maxDbConnections\": 250,\n \"maxDbClientConnections\": 2500,\n \"maxUserConnections\": 250,\n \"maxClientConn\": 5000,\n \"maxPreparedStatements\": 5000,\n \"serverLifetime\": 43230,\n \"serverIdleTimeout\": 43205\n },\n \"whitelistedIps\": [\n \"<string>\"\n ],\n \"public\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-brimble-key", "<api-key>")
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.put("https://api.brimble.io/core/v1/projects/database/{projectId}")
.header("x-brimble-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"configurations\": {\n \"cpu\": 7,\n \"memory\": 15,\n \"storage\": 25.25,\n \"diskSize\": 75.5,\n \"volumeMount\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"password\": \"<string>\",\n \"pgbouncerConfig\": {\n \"defaultPoolSize\": 50,\n \"maxDbConnections\": 250,\n \"maxDbClientConnections\": 2500,\n \"maxUserConnections\": 250,\n \"maxClientConn\": 5000,\n \"maxPreparedStatements\": 5000,\n \"serverLifetime\": 43230,\n \"serverIdleTimeout\": 43205\n },\n \"whitelistedIps\": [\n \"<string>\"\n ],\n \"public\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brimble.io/core/v1/projects/database/{projectId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-brimble-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"configurations\": {\n \"cpu\": 7,\n \"memory\": 15,\n \"storage\": 25.25,\n \"diskSize\": 75.5,\n \"volumeMount\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"password\": \"<string>\",\n \"pgbouncerConfig\": {\n \"defaultPoolSize\": 50,\n \"maxDbConnections\": 250,\n \"maxDbClientConnections\": 2500,\n \"maxUserConnections\": 250,\n \"maxClientConn\": 5000,\n \"maxPreparedStatements\": 5000,\n \"serverLifetime\": 43230,\n \"serverIdleTimeout\": 43205\n },\n \"whitelistedIps\": [\n \"<string>\"\n ],\n \"public\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Operation performed successfully, service would be unavailable for few minutes",
"data": {}
}{
"errors": [
{
"type": "field",
"value": "<unknown>",
"msg": "Invalid value",
"path": "name",
"location": "body"
}
]
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}Databases
Update a database
API key scope: project.update
Team role permission: project.update
PUT
/
v1
/
projects
/
database
/
{projectId}
Update a database
curl --request PUT \
--url https://api.brimble.io/core/v1/projects/database/{projectId} \
--header 'Content-Type: application/json' \
--header 'x-brimble-key: <api-key>' \
--data '
{
"name": "<string>",
"configurations": {
"cpu": 7,
"memory": 15,
"storage": 25.25,
"diskSize": 75.5,
"volumeMount": "<string>",
"region": "<string>"
},
"password": "<string>",
"pgbouncerConfig": {
"defaultPoolSize": 50,
"maxDbConnections": 250,
"maxDbClientConnections": 2500,
"maxUserConnections": 250,
"maxClientConn": 5000,
"maxPreparedStatements": 5000,
"serverLifetime": 43230,
"serverIdleTimeout": 43205
},
"whitelistedIps": [
"<string>"
],
"public": true
}
'import requests
url = "https://api.brimble.io/core/v1/projects/database/{projectId}"
payload = {
"name": "<string>",
"configurations": {
"cpu": 7,
"memory": 15,
"storage": 25.25,
"diskSize": 75.5,
"volumeMount": "<string>",
"region": "<string>"
},
"password": "<string>",
"pgbouncerConfig": {
"defaultPoolSize": 50,
"maxDbConnections": 250,
"maxDbClientConnections": 2500,
"maxUserConnections": 250,
"maxClientConn": 5000,
"maxPreparedStatements": 5000,
"serverLifetime": 43230,
"serverIdleTimeout": 43205
},
"whitelistedIps": ["<string>"],
"public": True
}
headers = {
"x-brimble-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-brimble-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
configurations: {
cpu: 7,
memory: 15,
storage: 25.25,
diskSize: 75.5,
volumeMount: '<string>',
region: '<string>'
},
password: '<string>',
pgbouncerConfig: {
defaultPoolSize: 50,
maxDbConnections: 250,
maxDbClientConnections: 2500,
maxUserConnections: 250,
maxClientConn: 5000,
maxPreparedStatements: 5000,
serverLifetime: 43230,
serverIdleTimeout: 43205
},
whitelistedIps: ['<string>'],
public: true
})
};
fetch('https://api.brimble.io/core/v1/projects/database/{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.brimble.io/core/v1/projects/database/{projectId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'configurations' => [
'cpu' => 7,
'memory' => 15,
'storage' => 25.25,
'diskSize' => 75.5,
'volumeMount' => '<string>',
'region' => '<string>'
],
'password' => '<string>',
'pgbouncerConfig' => [
'defaultPoolSize' => 50,
'maxDbConnections' => 250,
'maxDbClientConnections' => 2500,
'maxUserConnections' => 250,
'maxClientConn' => 5000,
'maxPreparedStatements' => 5000,
'serverLifetime' => 43230,
'serverIdleTimeout' => 43205
],
'whitelistedIps' => [
'<string>'
],
'public' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-brimble-key: <api-key>"
],
]);
$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.brimble.io/core/v1/projects/database/{projectId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"configurations\": {\n \"cpu\": 7,\n \"memory\": 15,\n \"storage\": 25.25,\n \"diskSize\": 75.5,\n \"volumeMount\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"password\": \"<string>\",\n \"pgbouncerConfig\": {\n \"defaultPoolSize\": 50,\n \"maxDbConnections\": 250,\n \"maxDbClientConnections\": 2500,\n \"maxUserConnections\": 250,\n \"maxClientConn\": 5000,\n \"maxPreparedStatements\": 5000,\n \"serverLifetime\": 43230,\n \"serverIdleTimeout\": 43205\n },\n \"whitelistedIps\": [\n \"<string>\"\n ],\n \"public\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-brimble-key", "<api-key>")
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.put("https://api.brimble.io/core/v1/projects/database/{projectId}")
.header("x-brimble-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"configurations\": {\n \"cpu\": 7,\n \"memory\": 15,\n \"storage\": 25.25,\n \"diskSize\": 75.5,\n \"volumeMount\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"password\": \"<string>\",\n \"pgbouncerConfig\": {\n \"defaultPoolSize\": 50,\n \"maxDbConnections\": 250,\n \"maxDbClientConnections\": 2500,\n \"maxUserConnections\": 250,\n \"maxClientConn\": 5000,\n \"maxPreparedStatements\": 5000,\n \"serverLifetime\": 43230,\n \"serverIdleTimeout\": 43205\n },\n \"whitelistedIps\": [\n \"<string>\"\n ],\n \"public\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brimble.io/core/v1/projects/database/{projectId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-brimble-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"configurations\": {\n \"cpu\": 7,\n \"memory\": 15,\n \"storage\": 25.25,\n \"diskSize\": 75.5,\n \"volumeMount\": \"<string>\",\n \"region\": \"<string>\"\n },\n \"password\": \"<string>\",\n \"pgbouncerConfig\": {\n \"defaultPoolSize\": 50,\n \"maxDbConnections\": 250,\n \"maxDbClientConnections\": 2500,\n \"maxUserConnections\": 250,\n \"maxClientConn\": 5000,\n \"maxPreparedStatements\": 5000,\n \"serverLifetime\": 43230,\n \"serverIdleTimeout\": 43205\n },\n \"whitelistedIps\": [\n \"<string>\"\n ],\n \"public\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Operation performed successfully, service would be unavailable for few minutes",
"data": {}
}{
"errors": [
{
"type": "field",
"value": "<unknown>",
"msg": "Invalid value",
"path": "name",
"location": "body"
}
]
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}Authorizations
ApiKeyAuthBearerAuth
API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.
Path Parameters
Pattern:
^[a-fA-F0-9]{24}$Body
application/json
Last modified on October 10, 2026
Was this page helpful?