> ## 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.

# Update transform

> Updates a single transform by UID and redeploys the pipeline.

Updates one transform by its UID. The pipeline is automatically redeployed after the update.

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

**Path parameters:**

| Parameter       | Description                    |
| :-------------- | :----------------------------- |
| `config_id`     | Pipeline configuration ID      |
| `transform_uid` | UID of the transform to update |

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

<Tabs>
  <Tab title="V8 JavaScript">
    ```bash theme={null}
    curl -X PATCH https://api.allium.so/api/v1/beam/${CONFIG_ID}/transforms/${TRANSFORM_UID} \
      -H "X-API-Key: ${ALLIUM_API_KEY}" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "v8",
        "script": "function transform(record) { record.parsed = true; return record; }"
      }'
    ```
  </Tab>

  <Tab title="Redis set filter">
    ```bash theme={null}
    curl -X PATCH https://api.allium.so/api/v1/beam/${CONFIG_ID}/transforms/${TRANSFORM_UID} \
      -H "X-API-Key: ${ALLIUM_API_KEY}" \
      -H "Content-Type: application/json" \
      -d '{
        "type": "redis_set_filter",
        "filter_expr": "root = this.address"
      }'
    ```
  </Tab>
</Tabs>

**Response:** The updated [`BeamTransformerConfig`](/beam/api-reference/configuration#transforms) object.


## OpenAPI

````yaml _openapi/beam-api.json PATCH /api/v1/beam/{config_id}/transforms/{transform_uid}
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/{transform_uid}:
    patch:
      tags:
        - BEAM
      summary: Update Transform Handler
      description: Update a single transform by UID. Syncs Redis and redeploys.
      operationId: >-
        update_transform_handler_api_v1_beam__config_id__transforms__transform_uid__patch
      parameters:
        - name: config_id
          in: path
          required: true
          schema:
            type: string
            title: Config Id
        - name: transform_uid
          in: path
          required: true
          schema:
            type: string
            title: Transform Uid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              oneOf:
                - $ref: '#/components/schemas/BeamTransformerConfigV8'
                - $ref: '#/components/schemas/BeamTransformerConfigRedisSetFilter'
              discriminator:
                propertyName: type
                mapping:
                  v8:
                    $ref: '#/components/schemas/BeamTransformerConfigV8'
                  redis_set_filter:
                    $ref: '#/components/schemas/BeamTransformerConfigRedisSetFilter'
              title: Transform
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/BeamTransformerConfigV8'
                  - $ref: '#/components/schemas/BeamTransformerConfigRedisSetFilter'
                discriminator:
                  propertyName: type
                  mapping:
                    v8:
                      $ref: '#/components/schemas/BeamTransformerConfigV8'
                    redis_set_filter:
                      $ref: '#/components/schemas/BeamTransformerConfigRedisSetFilter'
                title: >-
                  Response Update Transform Handler Api V1 Beam  Config Id 
                  Transforms  Transform Uid  Patch
        '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

````