waldbaer
09-12-2023Data Storage
REST API: How to replace a datasecurity rule for live elasticube
Hi there,
in https://sisense.dev/guides/restApi/v1/#/elasticubes/addDataContextForLiveElasticube for the dataContext you can read
> If exact same shares array exits for table and column, then rule will be overwritten
What exactly does "exact same shares array" mean?
I retrieved all rules for a given data model with https://sisense.dev/guides/restApi/v1/#/elasticubes/getDataContextForLiveElasticube, then picked one rule and sent it to the POST route with changed members.
I tried a shares array entry with and without partyName property when sending.
The result was added rules instead of the existing rule replaced.
Version: L2023.1.0.184