Example 1. Import a global function
curl request
curl -X POST -d @./my_function.json \
"http://$ADMIN:$PASSWORD@$HOST:8096/api/v1/functions/my_function"Example 2. Import a scoped function
curl request
curl -X POST -d @./my_function.json \
"http://$USER:$PASSWORD@$HOST:8096/api/v1/functions/my_function?bucket=bulk&scope=data"