Creating an aggregate

You create an aggregate in a model that has been opened in the IBM® Cognos® Dynamic Cubes API. After you create an aggregate, you can add aggregate measures, dimensions, and other objects to it.

Creating an aggregate - newAggregate

The aggregate command creates an aggregate called newAggregate from the source cube with an id of <cubeId> in the model. This command is equivalent to the New User Defined In-Memory Aggregate command in IBM Cognos Cube Designer. The identifier contained in the response is used in subsequent commands to refer to the aggregate.

Input JSON data
{
  "style":"inMemory",
  "parent":"<cubeId>",
  "name":"newAggregate"
}
  
Output JSON data
{
  "id":"<aggregateId>"
}