For example if an outputobject in a flow has a GCS path gs://abc-bucket I want to change it to gs://xyz-bucket once I import the plan in the new project.
API that I am using currently for export, import and importdataset modification are as follows.
EXPORT:
curl -L -X GET "https://api.clouddataprep.com/v4/plans/$plan_id/package" -H "Authorization: Bearer $DEV_BEARER_TOKEN" --data-raw '' -o plan_Demo_task.zip
IMPORT:
curl -L -X POST "https://api.clouddataprep.com/v4/plans/package" -H "Authorization: Bearer $QA_BEARER_TOKEN" -F "package=@plan_Demo_task.zip" -o id_details.json
IMPORTED DATASET MODIFICATION:
curl -L -X PUT "https://api.clouddataprep.com/v4/importedDatasets/$input_id" -H "Authorization: Bearer $QA_BEARER_TOKEN" -H "Content-Type: application/json" --data-raw "
{
\"name\": \"$datasetname\",
\"bucket\": \"$bucket_name\",
\"path\": \"/$path\"
}"