Author: tomas@keboola.com This is a super simple trick on how to quickly create and assign a MUF by cURL
curl --include \ --request POST \ --header "X-StorageApi-Token: YOUR-SAPI-TOKEN-HERE" \ --header "Accept: application/json" \ --data-binary '{ "writerId": "YOUR-WRITER-ID", "pid": "YOUR-GOODDATA-PID", "name": "YOUR-DESIRED-NAME", "attribute": "SOMETHING-LIKE-out.c-main.Customers.CustomerDataID", "value": "lalalala_we_are_almost_done" }' \https://syrup.keboola.com/gooddata-writer/filters
curl --include \ --request POST \ --header "X-StorageApi-Token: YOUR-SAPI-TOKEN-HERE" \ --header "Accept: application/json" \ --data-binary '{ "writerId": "YOUR-WRITER-ID", "email": "GOODDATA'S-USER-EMAIL", "filters": ["THE-FILTER-NAME-FROM-PREVIOUS-STEP"] }' \ https://syrup.keboola.com/gooddata-writer/filters-users YOURE DONE! P.S. To be able to check the filters, activate this here:
|