The example below creates or updates a library called mylib in the travel-sample.inventory scope.
The Python code is stored in a file called lib.pyz.
curl request
curl -X POST \
http://localhost:8095/analytics/library/travel-sample%2Finventory/mylib \
-u Administrator:password \
-d type=python
-d data=lib.pyz|
Note
|
The dot separator within the scope name is converted to a slash (/), which is then URL-encoded as %2F.
|