I assume you want to change one specific input mapping in particular transformation - let's say https://connection.keboola.com/admin/projects/2013/transformations/bucket/228803413/transformation/293095736
So, follow these steps:
Find you email under https://connection.keboola.com/admin/projects/2013/storage#/tokens and write it down somewhere (let's say my token is 2013-70130-xxxx
)
Individual transformations under Transformation bucket are stored in config rows
. API docs is here.
## List Configuration rows
curl "https://connection.keboola.com/v2/storage/components/transformation/configs/228803413/rows" \
-H 'X-StorageApi-Token: 2013-70130-xxxx'
If you're on the specific transformation is KBC, get its ID from URL. In my case, its "293095736". Find this ID in json CFG and get only configuration section (raw sample can be found in sample.row-configuration-section.json):
Once you have proper part of whole CFG, you can edit input mapping. In my case, I changed -58 days
to -59 days
.
To update transformation, you have to call PUT method and update key configuration (Form URL Encoded)! See sample.put.sh with sample CURL. In OSX Paw REST client, it looks like following example:
Once you get 200 OK
from our API, your transformation input mapping will have modified "Change Since Last" field and Transformation Bucket Versions (can be found here in UI https://connection.keboola.com/admin/projects/2013/transformations/bucket/228803413/versions) shows what have changed:
If you're stuck with modifying cfg, do not hesitate to contact our support directly from Keboola Connection UI!