Modify a data source
This article provides a guide on how to modify data sources using an API call.
This API enables you to modify an existing data source. All API calls require an API token.
PATCH https://api.upsolver.com/inputs/DATA-SOURCE-ID
Toggle soft retention
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "ToggleSoftRetention",
"softRetention" : true
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update retention
Fields
Example
curl -X POST -H "content-type: application/json" -H "Authorization:
YOUR_TOKEN" \
-d '{
"clazz" : "UpdateRetention",
"retention" : 1440
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update end execution at
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "UpdateEndExecutionAt",
"endExecutionAt" : "2018-11-04T08:00:00Z"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Set ingestion environment
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "SetIngestionEnvironment",
"environment" : "09267786-8d84-4644-adac-52601b9609bb"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Set compute environment
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "SetComputeEnvironment",
"environment" : "12ba7222-5764-4d37-8581-95ca5be4b3f7"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Rename
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "Rename",
"name" : "NEW_NAME"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update parallelism
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "UpdateParallelism",
"parallelism" : 1
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update shard parallelism
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "UpdateShardParallelism",
"shards" : 1
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update content type
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "UpdateContentType",
"contentType" : {
"type" : "JsonContentType"
}
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update description
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "UpdateDescription",
"description" : "description"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Attach workspace
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "AttachWorkspace",
"workspace" : "workspace"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Detach workspace
Fields
Example
curl -X POST -H "content-type: application/json"
-H "Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "DetachWorkspace",
"workspace" : "workspace"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Attach many workspaces
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "AttachManyWorkspaces",
"workspaces" : "workspaces"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update connection
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "UpdateConnection",
"connection" : "00dbf0e2-7c11-47f8-a672-
cacb537af190",
"moveData" : true
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Stop
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "Stop"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"
Update reporting tags
Fields
Example
curl -X POST -H "content-type: application/json" -H
"Authorization: YOUR_TOKEN" \
-d '{
"clazz" : "UpdateReportingTags",
"reportingTags" : "reportingTags"
}' "https://api.upsolver.com/inputs/DATA-SOURCE-ID"