Deploy transform Run in API Explorer
Initiate deployment of a new Wasm transform. This endpoint uses multipart/form-data encoding. Following deployment, a brief period is required before the Wasm transform becomes operational. Monitor the partition statuses to check whether the transform is active. This usually takes around 3s, but no longer than 10s.
PUT
/v1/transforms
curl \
--request PUT 'https://{dataplane_api_subdomain}.cloud.redpanda.com/v1/transforms' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: multipart/form-data"
Request example
{"name":"redact-orders","input_topic_name":"orders","output_topic_names":["orders-redacted"],"environment_variables":[{"key":"LOGGER_LEVEL","value":"DEBUG"}]}
Response examples (201)
{
"environment_variables": [
{
"key": "LOG_LEVEL",
"value": "DEBUG"
}
],
"input_topic_name": "string",
"name": "string",
"output_topic_names": [
"string"
],
"statuses": [
{
"broker_id": 42,
"lag": 42,
"partition_id": 42,
"status": "PARTITION_STATUS_RUNNING"
}
]
}