Skip to main content
POST
Run a data feed transformation against a test input

Authorizations

Authorization
string
header
required

Path Parameters

data_feed_friendly_id
string
required

The data feed's friendly ID (e.g. datafd_aBcD1234eFgH5678).

Body

multipart/form-data
script_content
string
required

The Python transformation script to execute

Example:

"for row in rows:\n events.append({'date': row['Date'], 'value': float(row['Amount'])})"

event_type_slug
string
required

The slug of an event type with an active transformation on the data feed

Example:

"combustion"

file
file

Optional CSV or Excel file to use as the test input. Replaces the data feed's stored test input when provided. Max 50MB.

Response

Transformation ran successfully

events
object[]
required

Up to 3 preview rows produced by the transformation

test_input
object | null

The stored test input the script ran against.