> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bringits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Managed Bucket Sink

> Write job data to the LSports-managed GCS bucket with a deterministic key structure

The Managed Bucket Sink command (Command Type: 1203) writes job data directly to the LSports-managed GCS bucket. The bucket and key structure are fixed — no caller configuration is required for the destination path.

**Key structure:** `{tenantId}/{projectId}/{stepId}/{itemId}/{YYYY}/{MM}/{DD}/{HH}/{runId}.json[.gz]`

## Command Type

**Command Type ID:** 1203

## Parameters

| Parameter    | Type    | Description                                                                                                                          | Required |
| ------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- |
| **compress** | boolean | When `true`, gzip-compresses the payload before upload. Key uses `.json.gz` extension and `ContentType` is set to `application/gzip` | No       |

## Usage Examples

### Write to Managed Bucket

```json theme={null}
{
  "command": "managed-bucket-sink",
  "params": {}
}
```

### Write Compressed

```json theme={null}
{
  "command": "managed-bucket-sink",
  "params": {
    "compress": true
  }
}
```

## Common Use Cases

* **Managed Storage**: Offload storage concerns — bucket credentials and key structure are handled automatically
* **Audit Trail**: Deterministic key structure makes data easy to locate by tenant, project, step, and run

## Related Commands

* [S3 Sink](/stream/commands/sink/s3-sink) - Upload to a custom S3 bucket
* [Kafka Sink](/stream/commands/sink/kafka-sink) - Publish to Kafka
