Skip to main content
POST
Redeploy a project

Authorizations

x-brimble-key
string
header
required

API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.

Path Parameters

projectId
string
required

ID of the project.

Pattern: ^[a-fA-F0-9]{24}$

Body

application/json
healthCheckPath
string

Path Brimble requests to check the app is healthy, for example /health. Must start with /.

authEnabled
boolean
default:false

MCP servers only: require a valid Brimble API key on every request.

public
boolean

Accept traffic from the internet. When false, the project is reachable only from other services on Brimble's private network. Defaults to true.

deleteVolume
boolean

Delete the attached volume and its data when the new settings remove it.

http2
boolean

Talk to your app over HTTP/2 (h2c) instead of HTTP/1.1. Your app must support h2c.

buildHealthCheck
boolean

Require a new deployment to pass health checks before it replaces the running one. Defaults to true.

preStartCommand
string

Command run in a separate container before each new deployment starts, for example npm run migrate.

dockerfile
string

Path to the Dockerfile, relative to rootDirectory. Only when framework is docker. Defaults to Dockerfile.

runtimeVersions
object

Runtime versions to build with, keyed by runtime, for example { "node": "20" }. Supported keys: node, python, go, php, java, ruby, dotnet, deno, rust, elixir, erlang, gleam. Send null to use the defaults.

watchPaths
string[]

Glob patterns of files that trigger a deployment on push, for example apps/web/**. Omit to deploy on every change.

configurations
object

Compute resources and region. Fields you leave out keep their current values.

diskSize
integer

Create a new persistent volume of this size, in GB (10 to 150). Requires mountPath. Cannot be combined with volumeId.

Required range: 10 <= x <= 150
volumeId
string

Attach an existing volume. Requires mountPath. Cannot be combined with diskSize.

Pattern: ^[a-fA-F0-9]{24}$
mountPath
string

Absolute path where the volume is mounted, for example /data. Cannot be /.

autoscalingGroup
string | null

ID of an autoscaling group to apply. Send an empty string to remove it.

serviceType
enum<string>

What kind of service to run: web-service (an app that serves HTTP), static (static files), mcp (an MCP server) or worker (a background process with no public URL).

Available options:
web-service,
static,
mcp,
worker
cronEnabled
boolean

Workers and web services: run the project on a cron schedule.

cronExpression
string

Cron schedule in 5-field or 6-field format, for example */15 * * * *. Required when cronEnabled is true.

cronTimezone
string

IANA timezone for the schedule, for example Europe/London. Defaults to UTC.

cronCommand
string

Web services only: command run on each cron tick. Required when cronEnabled is true for a web service.

sendReport
boolean

Email a deployment report when the deployment finishes.

logId
string

Redeploy the commit from this earlier deployment.

Pattern: ^[a-fA-F0-9]{24}$
buildCacheEnabled
boolean | null

Cache dependencies between builds to speed them up.

installCommand
string | null

Command that installs dependencies, for example npm ci. Omit to use the framework default.

buildCommand
string | null

Command that builds the app, for example npm run build. Omit to use the framework default.

startCommand
string | null

Command that starts the app, for example npm start. Omit to use the framework default.

outputDirectory
string | null

Folder that contains the built files to serve, for example dist. Used by static sites.

rootDirectory
string | null

Folder in the repository that contains the app, for monorepos. Omit for the repository root.

framework
string | null

Framework slug, for example nextjs or docker. See GET /v1/frameworks.

repo
object | null

Repository or image to deploy from.

name
string

Project name. When present, the other settings in the body are saved to the project before redeploying.

startOnly
boolean

Restart the current build without rebuilding.

Response

Operation success

message
string
required

Human-readable result of the request.

Example:

"Operation success"

data
object
required

The result of the request.

Last modified on October 31, 2026