Uploads System-Defined Aggregate Definition.
POST/v1/public/aggregates/import/catalogs/:catalogId/models/:modelId
This API imports System-Defined aggregate definitions exported from the UI or the /aggregates/export API. The Request Body is expected to match that of the /aggregates/export endpoint Response Body. The identical model, as defined by Model ID, must exist in the system for this call to succeed. This API does not support importing from newer versions to older versions of AtScale. For best results, Aggregate Definitions should be migrated between AtScale servers with identical version numbers.
Request
Path Parameters
The catalog ID (UUID) for which you are querying.
The model ID (UUID) for which you are querying.
Query Parameters
Whether to import distribution hints in aggregate logical plans (defaults to true if unspecified).
Whether to import partition hints in aggregate logical plans (defaults to true if unspecified).
Whether to import replication hints in aggregate logical plans (defaults to true if unspecified).
originalConnId:newConnId (no remap if unspecified). Pass multiple connection Remap variables to perform multiple remap operations.
Header Parameters
- application/json
Body
required
Array [
Array [
- MOD1
- MOD2
]
]
aggregates
object
required
values
object[]
required
notes
object
required
planJson
object
required
model
object
required
selection
object
required
columns
object[]
required
oneOf
aggregation-type
object
required
value
object
required
model
object
required
key
object
required
key
object
required
ref-path
object
required
aggregation-type
object
required
value
object
required
attribute
object
required
model
object
required
from
object
required
model
object
required
exportSummary
object
required
connectionIds
object
required
Responses
- 200
- 400
- 401
- 403
- 500
- 503
Success.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The AtScale system version from which the export originated.
Catalog ID
ID of the Catalog to which the file was imported.
ID of the Model containing the aggregate definitions.
Count of aggregate definitions that were imported.
Count of aggregate definitions that were not imported.
aggregates
object
required
Count: count of the response Values array, Values[ id: Source Aggregate UUID, newID: New Aggregate UUID, Imported: True|False, reason: Human readable reason for Imported=False.]
values
object[]
required
{
"atScaleExportVersion": "string",
"exportCatalogId": "string",
"importCatalogId": "string",
"modelId": "string",
"numberOfDefinitionsImported": 0,
"numberOfDefinitionsIgnored": 0,
"aggregates": {
"count": 0,
"values": [
{
"id": "string",
"newId": "string",
"imported": true,
"reason": "string"
}
]
}
}
Bad Request.
Unauthorized AtScale user.
User does not have permission to access the resource.
A server error occurred. Check the logs for more details.
This error will occur if Design Center APIs are not enabled