curl --request PUT \
--url https://{FUSION HOST}/api/connectors/configs/{id} \
--header 'Content-Type: application/json' \
--data '{
"parserId": "api-test-app",
"id": "lucidworks_file_upload-api-test-app",
"type": "lucidworks.file-upload",
"collectionId": "api-test-collection",
"properties": {
"mediaType": "application/octet-stream",
"fileId": "pokedex.json.zip"
},
"pipelineId": "api-test-app"
}'
{
"parserId": "api-test-app",
"created": "2024-08-02T18:41:09.470Z",
"coreProperties": {},
"modified": "2024-08-02T20:15:04.684Z",
"id": "lucidworks_file_upload-api-test-app",
"_id": "hFkHhvlFrg",
"type": "lucidworks.file-upload",
"collectionId": "api-test-collection",
"properties": {
"mediaType": "application/octet-stream",
"fileId": "pokedex.json.zip"
},
"pipelineId": "api-test-app"
}
Update the configuration properties of the specified datasource configuration.
curl --request PUT \
--url https://{FUSION HOST}/api/connectors/configs/{id} \
--header 'Content-Type: application/json' \
--data '{
"parserId": "api-test-app",
"id": "lucidworks_file_upload-api-test-app",
"type": "lucidworks.file-upload",
"collectionId": "api-test-collection",
"properties": {
"mediaType": "application/octet-stream",
"fileId": "pokedex.json.zip"
},
"pipelineId": "api-test-app"
}'
{
"parserId": "api-test-app",
"created": "2024-08-02T18:41:09.470Z",
"coreProperties": {},
"modified": "2024-08-02T20:15:04.684Z",
"id": "lucidworks_file_upload-api-test-app",
"_id": "hFkHhvlFrg",
"type": "lucidworks.file-upload",
"collectionId": "api-test-collection",
"properties": {
"mediaType": "application/octet-stream",
"fileId": "pokedex.json.zip"
},
"pipelineId": "api-test-app"
}
The datasource configuration ID.
The context of resource. It usually is the app inside which the resource is created.
OK
The response is of type object
.
Was this page helpful?