curl --request POST \
--url https://api.brimble.io/core/v1/projects/{projectId}/redeploy \
--header 'Content-Type: application/json' \
--header 'x-brimble-key: <api-key>' \
--data '
{
"healthCheckPath": "<string>",
"authEnabled": false,
"public": true,
"deleteVolume": true,
"http2": true,
"buildHealthCheck": true,
"preStartCommand": "<string>",
"dockerfile": "<string>",
"runtimeVersions": {
"node": "<string>",
"python": "<string>",
"go": "<string>",
"php": "<string>",
"java": "<string>",
"ruby": "<string>",
"dotnet": "<string>",
"deno": "<string>",
"rust": "<string>",
"elixir": "<string>",
"erlang": "<string>",
"gleam": "<string>"
},
"watchPaths": [
"<string>"
],
"diskSize": 80,
"volumeId": "<string>",
"mountPath": "<string>",
"autoscalingGroup": "<string>",
"cronEnabled": true,
"cronExpression": "<string>",
"cronTimezone": "<string>",
"cronCommand": "<string>",
"sendReport": true,
"logId": "<string>",
"buildCacheEnabled": true,
"installCommand": "<string>",
"buildCommand": "<string>",
"startCommand": "<string>",
"outputDirectory": "<string>",
"rootDirectory": "<string>",
"framework": "<string>",
"repo": {
"name": "<string>",
"branch": "<string>",
"id": "<string>",
"installationId": "<string>"
},
"name": "<string>",
"specs": {
"cpu": 123,
"memory": 123,
"storage": 123,
"region": "<string>"
},
"startOnly": true
}
'import requests
url = "https://api.brimble.io/core/v1/projects/{projectId}/redeploy"
payload = {
"healthCheckPath": "<string>",
"authEnabled": False,
"public": True,
"deleteVolume": True,
"http2": True,
"buildHealthCheck": True,
"preStartCommand": "<string>",
"dockerfile": "<string>",
"runtimeVersions": {
"node": "<string>",
"python": "<string>",
"go": "<string>",
"php": "<string>",
"java": "<string>",
"ruby": "<string>",
"dotnet": "<string>",
"deno": "<string>",
"rust": "<string>",
"elixir": "<string>",
"erlang": "<string>",
"gleam": "<string>"
},
"watchPaths": ["<string>"],
"diskSize": 80,
"volumeId": "<string>",
"mountPath": "<string>",
"autoscalingGroup": "<string>",
"cronEnabled": True,
"cronExpression": "<string>",
"cronTimezone": "<string>",
"cronCommand": "<string>",
"sendReport": True,
"logId": "<string>",
"buildCacheEnabled": True,
"installCommand": "<string>",
"buildCommand": "<string>",
"startCommand": "<string>",
"outputDirectory": "<string>",
"rootDirectory": "<string>",
"framework": "<string>",
"repo": {
"name": "<string>",
"branch": "<string>",
"id": "<string>",
"installationId": "<string>"
},
"name": "<string>",
"specs": {
"cpu": 123,
"memory": 123,
"storage": 123,
"region": "<string>"
},
"startOnly": True
}
headers = {
"x-brimble-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-brimble-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
healthCheckPath: '<string>',
authEnabled: false,
public: true,
deleteVolume: true,
http2: true,
buildHealthCheck: true,
preStartCommand: '<string>',
dockerfile: '<string>',
runtimeVersions: {
node: '<string>',
python: '<string>',
go: '<string>',
php: '<string>',
java: '<string>',
ruby: '<string>',
dotnet: '<string>',
deno: '<string>',
rust: '<string>',
elixir: '<string>',
erlang: '<string>',
gleam: '<string>'
},
watchPaths: ['<string>'],
diskSize: 80,
volumeId: '<string>',
mountPath: '<string>',
autoscalingGroup: '<string>',
cronEnabled: true,
cronExpression: '<string>',
cronTimezone: '<string>',
cronCommand: '<string>',
sendReport: true,
logId: '<string>',
buildCacheEnabled: true,
installCommand: '<string>',
buildCommand: '<string>',
startCommand: '<string>',
outputDirectory: '<string>',
rootDirectory: '<string>',
framework: '<string>',
repo: {
name: '<string>',
branch: '<string>',
id: '<string>',
installationId: '<string>'
},
name: '<string>',
specs: {cpu: 123, memory: 123, storage: 123, region: '<string>'},
startOnly: true
})
};
fetch('https://api.brimble.io/core/v1/projects/{projectId}/redeploy', 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/{projectId}/redeploy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'healthCheckPath' => '<string>',
'authEnabled' => false,
'public' => true,
'deleteVolume' => true,
'http2' => true,
'buildHealthCheck' => true,
'preStartCommand' => '<string>',
'dockerfile' => '<string>',
'runtimeVersions' => [
'node' => '<string>',
'python' => '<string>',
'go' => '<string>',
'php' => '<string>',
'java' => '<string>',
'ruby' => '<string>',
'dotnet' => '<string>',
'deno' => '<string>',
'rust' => '<string>',
'elixir' => '<string>',
'erlang' => '<string>',
'gleam' => '<string>'
],
'watchPaths' => [
'<string>'
],
'diskSize' => 80,
'volumeId' => '<string>',
'mountPath' => '<string>',
'autoscalingGroup' => '<string>',
'cronEnabled' => true,
'cronExpression' => '<string>',
'cronTimezone' => '<string>',
'cronCommand' => '<string>',
'sendReport' => true,
'logId' => '<string>',
'buildCacheEnabled' => true,
'installCommand' => '<string>',
'buildCommand' => '<string>',
'startCommand' => '<string>',
'outputDirectory' => '<string>',
'rootDirectory' => '<string>',
'framework' => '<string>',
'repo' => [
'name' => '<string>',
'branch' => '<string>',
'id' => '<string>',
'installationId' => '<string>'
],
'name' => '<string>',
'specs' => [
'cpu' => 123,
'memory' => 123,
'storage' => 123,
'region' => '<string>'
],
'startOnly' => 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/{projectId}/redeploy"
payload := strings.NewReader("{\n \"healthCheckPath\": \"<string>\",\n \"authEnabled\": false,\n \"public\": true,\n \"deleteVolume\": true,\n \"http2\": true,\n \"buildHealthCheck\": true,\n \"preStartCommand\": \"<string>\",\n \"dockerfile\": \"<string>\",\n \"runtimeVersions\": {\n \"node\": \"<string>\",\n \"python\": \"<string>\",\n \"go\": \"<string>\",\n \"php\": \"<string>\",\n \"java\": \"<string>\",\n \"ruby\": \"<string>\",\n \"dotnet\": \"<string>\",\n \"deno\": \"<string>\",\n \"rust\": \"<string>\",\n \"elixir\": \"<string>\",\n \"erlang\": \"<string>\",\n \"gleam\": \"<string>\"\n },\n \"watchPaths\": [\n \"<string>\"\n ],\n \"diskSize\": 80,\n \"volumeId\": \"<string>\",\n \"mountPath\": \"<string>\",\n \"autoscalingGroup\": \"<string>\",\n \"cronEnabled\": true,\n \"cronExpression\": \"<string>\",\n \"cronTimezone\": \"<string>\",\n \"cronCommand\": \"<string>\",\n \"sendReport\": true,\n \"logId\": \"<string>\",\n \"buildCacheEnabled\": true,\n \"installCommand\": \"<string>\",\n \"buildCommand\": \"<string>\",\n \"startCommand\": \"<string>\",\n \"outputDirectory\": \"<string>\",\n \"rootDirectory\": \"<string>\",\n \"framework\": \"<string>\",\n \"repo\": {\n \"name\": \"<string>\",\n \"branch\": \"<string>\",\n \"id\": \"<string>\",\n \"installationId\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"specs\": {\n \"cpu\": 123,\n \"memory\": 123,\n \"storage\": 123,\n \"region\": \"<string>\"\n },\n \"startOnly\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.brimble.io/core/v1/projects/{projectId}/redeploy")
.header("x-brimble-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"healthCheckPath\": \"<string>\",\n \"authEnabled\": false,\n \"public\": true,\n \"deleteVolume\": true,\n \"http2\": true,\n \"buildHealthCheck\": true,\n \"preStartCommand\": \"<string>\",\n \"dockerfile\": \"<string>\",\n \"runtimeVersions\": {\n \"node\": \"<string>\",\n \"python\": \"<string>\",\n \"go\": \"<string>\",\n \"php\": \"<string>\",\n \"java\": \"<string>\",\n \"ruby\": \"<string>\",\n \"dotnet\": \"<string>\",\n \"deno\": \"<string>\",\n \"rust\": \"<string>\",\n \"elixir\": \"<string>\",\n \"erlang\": \"<string>\",\n \"gleam\": \"<string>\"\n },\n \"watchPaths\": [\n \"<string>\"\n ],\n \"diskSize\": 80,\n \"volumeId\": \"<string>\",\n \"mountPath\": \"<string>\",\n \"autoscalingGroup\": \"<string>\",\n \"cronEnabled\": true,\n \"cronExpression\": \"<string>\",\n \"cronTimezone\": \"<string>\",\n \"cronCommand\": \"<string>\",\n \"sendReport\": true,\n \"logId\": \"<string>\",\n \"buildCacheEnabled\": true,\n \"installCommand\": \"<string>\",\n \"buildCommand\": \"<string>\",\n \"startCommand\": \"<string>\",\n \"outputDirectory\": \"<string>\",\n \"rootDirectory\": \"<string>\",\n \"framework\": \"<string>\",\n \"repo\": {\n \"name\": \"<string>\",\n \"branch\": \"<string>\",\n \"id\": \"<string>\",\n \"installationId\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"specs\": {\n \"cpu\": 123,\n \"memory\": 123,\n \"storage\": 123,\n \"region\": \"<string>\"\n },\n \"startOnly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brimble.io/core/v1/projects/{projectId}/redeploy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-brimble-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"healthCheckPath\": \"<string>\",\n \"authEnabled\": false,\n \"public\": true,\n \"deleteVolume\": true,\n \"http2\": true,\n \"buildHealthCheck\": true,\n \"preStartCommand\": \"<string>\",\n \"dockerfile\": \"<string>\",\n \"runtimeVersions\": {\n \"node\": \"<string>\",\n \"python\": \"<string>\",\n \"go\": \"<string>\",\n \"php\": \"<string>\",\n \"java\": \"<string>\",\n \"ruby\": \"<string>\",\n \"dotnet\": \"<string>\",\n \"deno\": \"<string>\",\n \"rust\": \"<string>\",\n \"elixir\": \"<string>\",\n \"erlang\": \"<string>\",\n \"gleam\": \"<string>\"\n },\n \"watchPaths\": [\n \"<string>\"\n ],\n \"diskSize\": 80,\n \"volumeId\": \"<string>\",\n \"mountPath\": \"<string>\",\n \"autoscalingGroup\": \"<string>\",\n \"cronEnabled\": true,\n \"cronExpression\": \"<string>\",\n \"cronTimezone\": \"<string>\",\n \"cronCommand\": \"<string>\",\n \"sendReport\": true,\n \"logId\": \"<string>\",\n \"buildCacheEnabled\": true,\n \"installCommand\": \"<string>\",\n \"buildCommand\": \"<string>\",\n \"startCommand\": \"<string>\",\n \"outputDirectory\": \"<string>\",\n \"rootDirectory\": \"<string>\",\n \"framework\": \"<string>\",\n \"repo\": {\n \"name\": \"<string>\",\n \"branch\": \"<string>\",\n \"id\": \"<string>\",\n \"installationId\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"specs\": {\n \"cpu\": 123,\n \"memory\": 123,\n \"storage\": 123,\n \"region\": \"<string>\"\n },\n \"startOnly\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Operation success",
"data": {
"id": "<unknown>",
"logId": "<unknown>"
}
}{
"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": {}
}Redeploy a project
Redeploys the project. With an empty body it rebuilds the latest commit. Send logId to redeploy the commit of an earlier deployment (rollback), or startOnly: true to restart without rebuilding. Including name together with build settings updates the project settings before redeploying.
API key scope: project.deploy
Team role permission: project.deploy
curl --request POST \
--url https://api.brimble.io/core/v1/projects/{projectId}/redeploy \
--header 'Content-Type: application/json' \
--header 'x-brimble-key: <api-key>' \
--data '
{
"healthCheckPath": "<string>",
"authEnabled": false,
"public": true,
"deleteVolume": true,
"http2": true,
"buildHealthCheck": true,
"preStartCommand": "<string>",
"dockerfile": "<string>",
"runtimeVersions": {
"node": "<string>",
"python": "<string>",
"go": "<string>",
"php": "<string>",
"java": "<string>",
"ruby": "<string>",
"dotnet": "<string>",
"deno": "<string>",
"rust": "<string>",
"elixir": "<string>",
"erlang": "<string>",
"gleam": "<string>"
},
"watchPaths": [
"<string>"
],
"diskSize": 80,
"volumeId": "<string>",
"mountPath": "<string>",
"autoscalingGroup": "<string>",
"cronEnabled": true,
"cronExpression": "<string>",
"cronTimezone": "<string>",
"cronCommand": "<string>",
"sendReport": true,
"logId": "<string>",
"buildCacheEnabled": true,
"installCommand": "<string>",
"buildCommand": "<string>",
"startCommand": "<string>",
"outputDirectory": "<string>",
"rootDirectory": "<string>",
"framework": "<string>",
"repo": {
"name": "<string>",
"branch": "<string>",
"id": "<string>",
"installationId": "<string>"
},
"name": "<string>",
"specs": {
"cpu": 123,
"memory": 123,
"storage": 123,
"region": "<string>"
},
"startOnly": true
}
'import requests
url = "https://api.brimble.io/core/v1/projects/{projectId}/redeploy"
payload = {
"healthCheckPath": "<string>",
"authEnabled": False,
"public": True,
"deleteVolume": True,
"http2": True,
"buildHealthCheck": True,
"preStartCommand": "<string>",
"dockerfile": "<string>",
"runtimeVersions": {
"node": "<string>",
"python": "<string>",
"go": "<string>",
"php": "<string>",
"java": "<string>",
"ruby": "<string>",
"dotnet": "<string>",
"deno": "<string>",
"rust": "<string>",
"elixir": "<string>",
"erlang": "<string>",
"gleam": "<string>"
},
"watchPaths": ["<string>"],
"diskSize": 80,
"volumeId": "<string>",
"mountPath": "<string>",
"autoscalingGroup": "<string>",
"cronEnabled": True,
"cronExpression": "<string>",
"cronTimezone": "<string>",
"cronCommand": "<string>",
"sendReport": True,
"logId": "<string>",
"buildCacheEnabled": True,
"installCommand": "<string>",
"buildCommand": "<string>",
"startCommand": "<string>",
"outputDirectory": "<string>",
"rootDirectory": "<string>",
"framework": "<string>",
"repo": {
"name": "<string>",
"branch": "<string>",
"id": "<string>",
"installationId": "<string>"
},
"name": "<string>",
"specs": {
"cpu": 123,
"memory": 123,
"storage": 123,
"region": "<string>"
},
"startOnly": True
}
headers = {
"x-brimble-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-brimble-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
healthCheckPath: '<string>',
authEnabled: false,
public: true,
deleteVolume: true,
http2: true,
buildHealthCheck: true,
preStartCommand: '<string>',
dockerfile: '<string>',
runtimeVersions: {
node: '<string>',
python: '<string>',
go: '<string>',
php: '<string>',
java: '<string>',
ruby: '<string>',
dotnet: '<string>',
deno: '<string>',
rust: '<string>',
elixir: '<string>',
erlang: '<string>',
gleam: '<string>'
},
watchPaths: ['<string>'],
diskSize: 80,
volumeId: '<string>',
mountPath: '<string>',
autoscalingGroup: '<string>',
cronEnabled: true,
cronExpression: '<string>',
cronTimezone: '<string>',
cronCommand: '<string>',
sendReport: true,
logId: '<string>',
buildCacheEnabled: true,
installCommand: '<string>',
buildCommand: '<string>',
startCommand: '<string>',
outputDirectory: '<string>',
rootDirectory: '<string>',
framework: '<string>',
repo: {
name: '<string>',
branch: '<string>',
id: '<string>',
installationId: '<string>'
},
name: '<string>',
specs: {cpu: 123, memory: 123, storage: 123, region: '<string>'},
startOnly: true
})
};
fetch('https://api.brimble.io/core/v1/projects/{projectId}/redeploy', 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/{projectId}/redeploy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'healthCheckPath' => '<string>',
'authEnabled' => false,
'public' => true,
'deleteVolume' => true,
'http2' => true,
'buildHealthCheck' => true,
'preStartCommand' => '<string>',
'dockerfile' => '<string>',
'runtimeVersions' => [
'node' => '<string>',
'python' => '<string>',
'go' => '<string>',
'php' => '<string>',
'java' => '<string>',
'ruby' => '<string>',
'dotnet' => '<string>',
'deno' => '<string>',
'rust' => '<string>',
'elixir' => '<string>',
'erlang' => '<string>',
'gleam' => '<string>'
],
'watchPaths' => [
'<string>'
],
'diskSize' => 80,
'volumeId' => '<string>',
'mountPath' => '<string>',
'autoscalingGroup' => '<string>',
'cronEnabled' => true,
'cronExpression' => '<string>',
'cronTimezone' => '<string>',
'cronCommand' => '<string>',
'sendReport' => true,
'logId' => '<string>',
'buildCacheEnabled' => true,
'installCommand' => '<string>',
'buildCommand' => '<string>',
'startCommand' => '<string>',
'outputDirectory' => '<string>',
'rootDirectory' => '<string>',
'framework' => '<string>',
'repo' => [
'name' => '<string>',
'branch' => '<string>',
'id' => '<string>',
'installationId' => '<string>'
],
'name' => '<string>',
'specs' => [
'cpu' => 123,
'memory' => 123,
'storage' => 123,
'region' => '<string>'
],
'startOnly' => 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/{projectId}/redeploy"
payload := strings.NewReader("{\n \"healthCheckPath\": \"<string>\",\n \"authEnabled\": false,\n \"public\": true,\n \"deleteVolume\": true,\n \"http2\": true,\n \"buildHealthCheck\": true,\n \"preStartCommand\": \"<string>\",\n \"dockerfile\": \"<string>\",\n \"runtimeVersions\": {\n \"node\": \"<string>\",\n \"python\": \"<string>\",\n \"go\": \"<string>\",\n \"php\": \"<string>\",\n \"java\": \"<string>\",\n \"ruby\": \"<string>\",\n \"dotnet\": \"<string>\",\n \"deno\": \"<string>\",\n \"rust\": \"<string>\",\n \"elixir\": \"<string>\",\n \"erlang\": \"<string>\",\n \"gleam\": \"<string>\"\n },\n \"watchPaths\": [\n \"<string>\"\n ],\n \"diskSize\": 80,\n \"volumeId\": \"<string>\",\n \"mountPath\": \"<string>\",\n \"autoscalingGroup\": \"<string>\",\n \"cronEnabled\": true,\n \"cronExpression\": \"<string>\",\n \"cronTimezone\": \"<string>\",\n \"cronCommand\": \"<string>\",\n \"sendReport\": true,\n \"logId\": \"<string>\",\n \"buildCacheEnabled\": true,\n \"installCommand\": \"<string>\",\n \"buildCommand\": \"<string>\",\n \"startCommand\": \"<string>\",\n \"outputDirectory\": \"<string>\",\n \"rootDirectory\": \"<string>\",\n \"framework\": \"<string>\",\n \"repo\": {\n \"name\": \"<string>\",\n \"branch\": \"<string>\",\n \"id\": \"<string>\",\n \"installationId\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"specs\": {\n \"cpu\": 123,\n \"memory\": 123,\n \"storage\": 123,\n \"region\": \"<string>\"\n },\n \"startOnly\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.brimble.io/core/v1/projects/{projectId}/redeploy")
.header("x-brimble-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"healthCheckPath\": \"<string>\",\n \"authEnabled\": false,\n \"public\": true,\n \"deleteVolume\": true,\n \"http2\": true,\n \"buildHealthCheck\": true,\n \"preStartCommand\": \"<string>\",\n \"dockerfile\": \"<string>\",\n \"runtimeVersions\": {\n \"node\": \"<string>\",\n \"python\": \"<string>\",\n \"go\": \"<string>\",\n \"php\": \"<string>\",\n \"java\": \"<string>\",\n \"ruby\": \"<string>\",\n \"dotnet\": \"<string>\",\n \"deno\": \"<string>\",\n \"rust\": \"<string>\",\n \"elixir\": \"<string>\",\n \"erlang\": \"<string>\",\n \"gleam\": \"<string>\"\n },\n \"watchPaths\": [\n \"<string>\"\n ],\n \"diskSize\": 80,\n \"volumeId\": \"<string>\",\n \"mountPath\": \"<string>\",\n \"autoscalingGroup\": \"<string>\",\n \"cronEnabled\": true,\n \"cronExpression\": \"<string>\",\n \"cronTimezone\": \"<string>\",\n \"cronCommand\": \"<string>\",\n \"sendReport\": true,\n \"logId\": \"<string>\",\n \"buildCacheEnabled\": true,\n \"installCommand\": \"<string>\",\n \"buildCommand\": \"<string>\",\n \"startCommand\": \"<string>\",\n \"outputDirectory\": \"<string>\",\n \"rootDirectory\": \"<string>\",\n \"framework\": \"<string>\",\n \"repo\": {\n \"name\": \"<string>\",\n \"branch\": \"<string>\",\n \"id\": \"<string>\",\n \"installationId\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"specs\": {\n \"cpu\": 123,\n \"memory\": 123,\n \"storage\": 123,\n \"region\": \"<string>\"\n },\n \"startOnly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brimble.io/core/v1/projects/{projectId}/redeploy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-brimble-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"healthCheckPath\": \"<string>\",\n \"authEnabled\": false,\n \"public\": true,\n \"deleteVolume\": true,\n \"http2\": true,\n \"buildHealthCheck\": true,\n \"preStartCommand\": \"<string>\",\n \"dockerfile\": \"<string>\",\n \"runtimeVersions\": {\n \"node\": \"<string>\",\n \"python\": \"<string>\",\n \"go\": \"<string>\",\n \"php\": \"<string>\",\n \"java\": \"<string>\",\n \"ruby\": \"<string>\",\n \"dotnet\": \"<string>\",\n \"deno\": \"<string>\",\n \"rust\": \"<string>\",\n \"elixir\": \"<string>\",\n \"erlang\": \"<string>\",\n \"gleam\": \"<string>\"\n },\n \"watchPaths\": [\n \"<string>\"\n ],\n \"diskSize\": 80,\n \"volumeId\": \"<string>\",\n \"mountPath\": \"<string>\",\n \"autoscalingGroup\": \"<string>\",\n \"cronEnabled\": true,\n \"cronExpression\": \"<string>\",\n \"cronTimezone\": \"<string>\",\n \"cronCommand\": \"<string>\",\n \"sendReport\": true,\n \"logId\": \"<string>\",\n \"buildCacheEnabled\": true,\n \"installCommand\": \"<string>\",\n \"buildCommand\": \"<string>\",\n \"startCommand\": \"<string>\",\n \"outputDirectory\": \"<string>\",\n \"rootDirectory\": \"<string>\",\n \"framework\": \"<string>\",\n \"repo\": {\n \"name\": \"<string>\",\n \"branch\": \"<string>\",\n \"id\": \"<string>\",\n \"installationId\": \"<string>\"\n },\n \"name\": \"<string>\",\n \"specs\": {\n \"cpu\": 123,\n \"memory\": 123,\n \"storage\": 123,\n \"region\": \"<string>\"\n },\n \"startOnly\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Operation success",
"data": {
"id": "<unknown>",
"logId": "<unknown>"
}
}{
"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
API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.
Path Parameters
^[a-fA-F0-9]{24}$Body
Show child attributes
Show child attributes
Show child attributes
Show child attributes
10 <= x <= 150^[a-fA-F0-9]{24}$web-service, static, mcp, worker Redeploy the commit from this earlier deployment.
^[a-fA-F0-9]{24}$Show child attributes
Show child attributes
Project name. When present, the other settings in the body are saved to the project before redeploying.
Show child attributes
Show child attributes
Restart the current build without rebuilding.
Was this page helpful?