Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 488 Bytes

File metadata and controls

18 lines (15 loc) · 488 Bytes

Example HTTP Request

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.