curl --request PUT \
--url https://{FUSION HOST}/api/connectors/datasources/{id} \
--header 'Content-Type: application/json' \
--data '{
"id": "pokedex_json_zip-api-test-app",
"connector": "lucid.fileupload",
"type": "fileupload",
"pipeline": "api-test-app",
"parserId": "pokedex_json_zip-api-test-app",
"properties": {
"collection": "api-test-collection",
"fileId": "pokedex.json.zip",
"mediaType": "application/octet-stream"
}
}'
{
"id": "pokedex_json_zip-api-test-app",
"created": "2024-08-02T18:19:09.458Z",
"modified": "2024-08-02T19:43:28.394Z",
"connector": "lucid.fileupload",
"type": "fileupload",
"pipeline": "api-test-app",
"parserId": "pokedex_json_zip-api-test-app",
"properties": {
"collection": "api-test-collection",
"fileId": "pokedex.json.zip",
"mediaType": "application/octet-stream"
}
}
Update the configuration properties of the specified datasource configuration.
curl --request PUT \
--url https://{FUSION HOST}/api/connectors/datasources/{id} \
--header 'Content-Type: application/json' \
--data '{
"id": "pokedex_json_zip-api-test-app",
"connector": "lucid.fileupload",
"type": "fileupload",
"pipeline": "api-test-app",
"parserId": "pokedex_json_zip-api-test-app",
"properties": {
"collection": "api-test-collection",
"fileId": "pokedex.json.zip",
"mediaType": "application/octet-stream"
}
}'
{
"id": "pokedex_json_zip-api-test-app",
"created": "2024-08-02T18:19:09.458Z",
"modified": "2024-08-02T19:43:28.394Z",
"connector": "lucid.fileupload",
"type": "fileupload",
"pipeline": "api-test-app",
"parserId": "pokedex_json_zip-api-test-app",
"properties": {
"collection": "api-test-collection",
"fileId": "pokedex.json.zip",
"mediaType": "application/octet-stream"
}
}
The datasource configuration ID.
Indicates if the configuration should be validated.
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?