Skip to main content
PATCH
Reconfigure Stream

Overview

Update the configuration of an existing stream. Only the specified fields will be updated; unspecified fields remain unchanged. This endpoint uses PATCH semantics, meaning you only need to include the fields you want to change.

Authentication

This endpoint requires authentication via the S2-Basin header containing your basin name.

Path Parameters

string
required
The name of the stream to reconfigure.Example: logs/application

Request Body

All fields are optional. Include only the fields you want to update.
string
Update the storage class:
  • standard - Append tail latency under 400ms
  • express - Append tail latency under 40ms
object
Update the retention policy.Options:
  • {"age": <seconds>} - Age in seconds for automatic trimming (must be > 0)
  • {"infinite": {}} - Retain records unless explicitly trimmed
object
Update timestamping behavior. You can update individual fields within this object.
object
Update automatic deletion configuration.

Response

Returns the complete updated stream configuration.
string
Current storage class.
object
Current retention policy.
object
Current timestamping configuration.
object
Current delete-on-empty configuration.

Example Requests

Update Storage Class Only

cURL

Update Retention Policy

cURL

Update Multiple Settings

cURL
Stream names in the URL must be properly URL-encoded. For example, logs/application becomes logs%2Fapplication.

Example Response

Error Responses

  • 404 Not Found - Stream does not exist
  • 400 Bad Request - Invalid configuration (e.g., retention age of 0)
  • 403 Forbidden - Insufficient permissions to reconfigure the stream
  • 409 Conflict - Configuration conflict