Build elastic cube via Rest API



  • Avatar
    Moti Granovsky

    Hi Srinidhi,

    The API you mentioned from v0.9 should do the trick, here is an example of a valid invocation of it:

    • http://localhost:8081 is where Sisense is installed and the API is accessible from
    • /localhost/nullz refers to an Elasticube titled "nullz" located on the same machine where the API is run
    • type=full means a standard build with accumulation. Use type=restart to rebuild the cube from scratch.

    If your Elasticubes are hosted in a different server than the Sisense web server, you'll need to provide the right address in the path. You can see it in the admin page:

    If the API request is successful, you should get an empty body response and the Elasticube will be in "building" status (can be seen in the same admin page above)

    Comment actions Permalink
  • Avatar
    Adam Howard

    Hi Moti,

    I am trying to build an elasticube from scratch (draft version, never been built). I am using Windows 8.2.4. Using the API call "startBuild?type=full", I am able to rebuild cubes that have already been built. However when using this same API call with "type=restart" on a draft version, I get a 400 response. 

    Hope to hear back from you soon.




    Comment actions Permalink
  • Avatar
    Nir Zilberman (Edited )

    Hi Adam,

    This is the officially supported REST API endpoint for triggering an ElastiCube Build on Sisense Windows versions:

    POST /api/elasticubes/{serverAddress}/{elasticubeId}/startBuild?type={buildType}

    And these are the acceptable values for {buildType}:

    • "entire" or "full" -> Full Build (Build Entire) [ProcessType.Full]

    • "accumulate" OR "fullupdateexisting" -> Accumulative Build [ProcessType.FullUpdateExisting]

    • "schemachanges" OR "delta" -> Schema Changes Build (Changes Only Build) [ProcessType.Delta]


    Comment actions Permalink

Please sign in to leave a comment.