Skip to main content
PATCH
Update a log drain

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

drainId
string
required

ID of the log drain.

Query Parameters

teamId
string

Team to act in. Omit for your personal workspace. API keys created for a team use that team automatically.

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

"6a81bed11470bfcd2a5dbcfa"

Body

application/json
name
string

Name of the drain, up to 64 characters.

Maximum string length: 64
type
enum<string>

https posts logs to a URL; s3 writes them to an S3-compatible bucket. Defaults to https.

Available options:
https,
s3
url
string

HTTPS URL to post logs to. Required when type is https.

enabled
boolean

Send logs to the drain. Defaults to true.

headers
object

Headers sent with each request, for example { "Authorization": "Bearer …" }. Values up to 1 KB.

sources
enum<string>[]

Log types to send: app (your app's output), system (build and platform events) and http (request logs). Defaults to app and system.

Minimum array length: 1
Available options:
app,
system,
http
s3
object

Bucket settings. Required when type is s3. Either set storageBucketId or the bucket and access key fields.

teamId
string

Team to act in. Omit for your personal workspace.

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

Response

Log drain updated successfully

message
string
required

Human-readable result of the request.

Example:

"Log drain updated successfully"

data
object
required
Last modified on October 31, 2026