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

# Replace all transforms

> Replaces the entire transforms list and redeploys the pipeline.

Replaces the entire transforms list. Handles add, remove, update, and reorder in a single call. The pipeline is automatically redeployed.

<Note>
  **Required permission:** `edit` — owners and editors.
</Note>

**Path parameters:**

| Parameter   | Description               |
| :---------- | :------------------------ |
| `config_id` | Pipeline configuration ID |

**Request body:** [`BeamTransformerConfig[]`](/beam/api-reference/configuration#transforms)

```bash theme={null}
curl -X PUT https://api.allium.so/api/v1/beam/${CONFIG_ID}/transforms \
  -H "X-API-Key: ${ALLIUM_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '[
    { "type": "redis_set_filter", "filter_expr": "root = this.from_address" },
    { "type": "v8", "script": "function transform(d) { return d; }" }
  ]'
```

**Response:** Array of updated [`BeamTransformerConfig`](/beam/api-reference/configuration#transforms) objects.

<Warning>
  The transforms list cannot be empty.
</Warning>

<Note>
  Omit the `uid` field on new transforms — one will be auto-generated. Include the `uid` for existing transforms you want to keep or update.
</Note>


## OpenAPI

````yaml _openapi/beam-api.json PUT /api/v1/beam/{config_id}/transforms
openapi: 3.1.0
info:
  title: Allium Beam API
  description: Allium Beam — managed streaming pipelines on top of Allium Datastreams.
  version: 1.0.0
servers:
  - url: https://api.allium.so
security: []
paths:
  /api/v1/beam/{config_id}/transforms:
    put:
      tags:
        - BEAM
      summary: Replace Transforms Handler
      description: Replace the entire transforms list. Handles add/remove/update/reorder.
      operationId: replace_transforms_handler_api_v1_beam__config_id__transforms_put
      parameters:
        - name: config_id
          in: path
          required: true
          schema:
            type: string
            title: Config Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              items:
                oneOf:
                  - $ref: '#/components/schemas/BeamTransformerConfigV8'
                  - $ref: '#/components/schemas/BeamTransformerConfigRedisSetFilter'
                discriminator:
                  propertyName: type
                  mapping:
                    redis_set_filter:
                      $ref: '#/components/schemas/BeamTransformerConfigRedisSetFilter'
                    v8:
                      $ref: '#/components/schemas/BeamTransformerConfigV8'
              type: array
              title: Transforms
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  oneOf:
                    - $ref: '#/components/schemas/BeamTransformerConfigV8'
                    - $ref: '#/components/schemas/BeamTransformerConfigRedisSetFilter'
                  discriminator:
                    propertyName: type
                    mapping:
                      redis_set_filter:
                        $ref: >-
                          #/components/schemas/BeamTransformerConfigRedisSetFilter
                      v8:
                        $ref: '#/components/schemas/BeamTransformerConfigV8'
                title: >-
                  Response Replace Transforms Handler Api V1 Beam  Config Id 
                  Transforms Put
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyBearer: []
components:
  schemas:
    BeamTransformerConfigV8:
      properties:
        uid:
          type: string
          maxLength: 128
          title: Uid
        type:
          type: string
          const: v8
          title: Type
          default: v8
        script:
          type: string
          title: Script
      type: object
      required:
        - script
      title: BeamTransformerConfigV8
    BeamTransformerConfigRedisSetFilter:
      properties:
        uid:
          type: string
          maxLength: 128
          title: Uid
        type:
          type: string
          const: redis_set_filter
          title: Type
          default: redis_set_filter
        filter_expr:
          type: string
          title: Filter Expr
      type: object
      required:
        - filter_expr
      title: BeamTransformerConfigRedisSetFilter
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyBearer:
      type: apiKey
      in: header
      name: X-API-KEY

````