POST
/
transformations
/
{name}
curl --request POST \
  --url https://app.indexing.co/dw/transformations/{name} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "code": "function transform(block) { ... }"
}'
{
  "message": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

name
string
required

Body

Transformation to save
code
string
Example:

"function transform(block) { ... }"

Response

200
application/json
success
message
string
required