import requests
url = "https://{FUSION HOST}/api/connectors/configs"
payload = {
"parserId": "api-test-app",
"id": "lucidworks_file_upload-api-test-app",
"type": "lucidworks.file-upload",
"collectionId": "api-test-app",
"properties": {
"mediaType": "application/octet-stream",
"fileId": "pokedex.json.zip"
},
"pipelineId": "api-test-app"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)