Skip to main content
RudderStack Transformation logo
  • Category: analytics
  • Auth: BASIC
  • Composio-managed OAuth available? N/A
  • Tools: 12
  • Triggers: 0
  • Slug: RUDDERSTACK_TRANSFORMATION
  • Version: 20261101_00

Tools

Slug: RUDDERSTACK_TRANSFORMATION_CREATE_LIBRARYCreate a RudderStack transformation library containing reusable JavaScript or Python code. The library is unpublished by default; publishing makes it available for import by transformations.

Input Parameters

string
required
The library code.
string
required
Name of the library that you wish to create. This name is used as modules when it is imported in the transformation code.
boolean
If true, publishes your library to the latest version; code is made live for incoming traffic. Default is false.
string ("javascript" | "pythonfaas")
required
Language of the library code. Acceptable values are ‘javascript’ and ‘pythonfaas’.
string
Description of the library.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_CREATE_TRANSFORMATIONTool to create a RudderStack transformation. When publish=false (default), creates an unpublished transformation not available to event traffic. When publish=true, publishes the transformation making it live for incoming events and connectable to destinations.

Input Parameters

string
required
The transformation code to execute. For JavaScript, this should export a transformEvent function. For Python, implement the appropriate function signature.
string
required
Name of the transformation to create. This is a human-readable identifier for the transformation.
array
Array of test events (JSON objects) to validate your transformation code. Use this to test your transformation logic before deploying.
boolean
Whether to publish the transformation. When false (default), RudderStack creates revisions but the transformation is not available to incoming event traffic. When true, the transformation can be connected to destinations and its code is made live for incoming traffic.
string ("javascript" | "pythonfaas")
required
Language of the transformation code. Must be either ‘javascript’ or ‘pythonfaas’.
string
required
Description of the transformation. Use this to document what the transformation does.
array
Array of destination IDs to connect with this transformation. The transformation will apply to events sent to these destinations.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_DELETE_TRANSFORMATIONDelete a published transformation by ID. Note that RudderStack never deletes a transformation revision. Use this when you need to remove a transformation from the system.

Input Parameters

string
required
The unique identifier of the transformation to delete. This is the transformation ID returned when the transformation was created or listed.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_GET_LIBRARYRetrieves a single published library by its unique identifier. Use when you need to fetch details of a specific library.

Input Parameters

string
required
The unique identifier of the library to retrieve.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_GET_LIBRARY_VERSIONTool to retrieve a single library version by library ID and version ID. Use when you need to fetch details of a specific library revision in RudderStack transformations.

Input Parameters

string
required
The library ID
string
required
The version ID of the library

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_GET_TRANSFORMATIONTool to retrieve a published transformation by its ID from RudderStack. Use when you need to fetch details about a specific transformation including its code, version, and associated destinations.

Input Parameters

string
required
The unique identifier of the transformation to retrieve.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_GET_TRANSFORMATION_VERSIONRetrieve a single transformation revision by transformation ID and version ID. Use when you need to get details about a specific version of a RudderStack transformation.

Input Parameters

string
required
The transformation ID
string
required
The version ID of the transformation

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_LIST_LIBRARIESTool to retrieve all published libraries for a workspace. Use when you need to list available libraries for transformations.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_LIST_LIBRARY_VERSIONSList revisions of a RudderStack transformation library by library ID. Optionally specify a count and ascending or descending creation-time order; by default, the first five revisions are returned in ascending order.

Input Parameters

string
required
The library ID to retrieve versions for
integer
Gets the number of objects in your array. By default always returns the first 5 objects.
string
Pass either ‘asc’ for ascending or ‘desc’ for descending. By default, it sets the order as ascending on createdAt.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_LIST_TRANSFORMATIONSTool to retrieve all published transformations for a workspace. Use when you need to list available transformations or find a specific transformation by name.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_LIST_TRANSFORMATION_VERSIONSList transformation versions for a given transformation ID, with optional count and ordering. By default, the API returns the first five versions in ascending creation order.

Input Parameters

string
required
The transformation ID for which to retrieve all versions
integer
Gets the number of objects in your array. By default always returns the first 5 objects.
string
Pass either ‘asc’ for ascending or ‘desc’ for descending. By default, it sets the order as ascending on createdAt.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: RUDDERSTACK_TRANSFORMATION_UPDATE_TRANSFORMATIONTool to update and optionally publish a RudderStack transformation. Use when you need to modify a transformation’s name, description, or code. Updating creates a new revision and sets it as published if the publish flag is true.

Input Parameters

string
required
The transformation ID to update.
string
Updated transformation code. Cannot change the language of the transformation code.
string
Updated transformation name.
boolean
If true, publishes the transformation to the latest version. If false or omitted, only creates a new revision without publishing.
string
Updated transformation description.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not