Add and Update Scripts
Resources
Below is an example of JSON structure which can be used as a reference for the scripts parameter in the request body.
[
{
"expression": "SCOPE([Order].[OrderPriority].&[Critical],[Measures].[Avg Profit]); \n\t This = [Measures].[Avg Discount],[CustomerName].[H_CustomerName].[Segment].&[Consumer]; \nEND SCOPE;",
"name": "DEFAULT_SCRIPT",
"disabled": true
}
]