updateCalculatedInsight
PATCH {{baseUrl}}/ssot/calculated-insights/:apiName
Update a calculated insight in Data Cloud.
Available Version: 57.0
Root XML tag: <cdpCalculatedInsightInput>
Request Body
{"displayName"=>"dev1__demo_draft_ci_6__cio", "apiName"=>"dev1__demo_draft_ci_6__cio", "definitionType"=>"CalculatedMetric", "expression"=>"SELECT count(ssot__Individual__dlm.ssot__DataSourceId__c) as dev1__m1__c, ssot__Individual__dlm.ssot__Id__c as dev1__d1__c FROM ssot__Individual__dlm WHERE ssot__Individual__dlm.ssot__InternalOrganizationId__c= 'test name' GROUP BY dev1__d1__c", "draft"=>true, "createdFromPackage"=>false, "dataSpaceName"=>"", "description"=>"", "packagedCalculatedInsightApiName"=>""}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"apiName":"\u003cstring\u003e","calculatedInsightStatus":"\u003cstring\u003e","creationType":"\u003cstring\u003e","dataSpace":"\u003cstring\u003e","definitionStatus":"\u003cstring\u003e","definitionType":"\u003cstring\u003e","description":"\u003cstring\u003e","dimensions":[{"apiName":"\u003cstring\u003e","creationType":"\u003cstring\u003e","dataSource":{"sourceApiName":"\u003cstring\u003e","type":"\u003cstring\u003e"},"dataType":"\u003cstring\u003e","dateGranularity":"\u003cstring\u003e","displayName":"\u003cstring\u003e","fieldRole":"\u003cstring\u003e","formula":"\u003cstring\u003e"},{"apiName":"\u003cstring\u003e","creationType":"\u003cstring\u003e","dataSource":{"sourceApiName":"\u003cstring\u003e","type":"\u003cstring\u003e"},"dataType":"\u003cstring\u003e","dateGranularity":"\u003cstring\u003e","displayName":"\u003cstring\u003e","fieldRole":"\u003cstring\u003e","formula":"\u003cstring\u003e"}],"displayName":"\u003cstring\u003e","expression":"\u003cstring\u003e","isEnabled":"\u003cboolean\u003e","lastCalcInsightStatusDateTime":"\u003cstring\u003e","lastCalcInsightStatusErrorCode":"\u003cstring\u003e","lastRunDateTime":"\u003cstring\u003e","lastRunStatus":"\u003cstring\u003e","lastRunStatusDateTime":"\u003cstring\u003e","lastRunStatusErrorCode":"\u003cstring\u003e","measures":[{"apiName":"\u003cstring\u003e","creationType":"\u003cstring\u003e","dataSource":{"sourceApiName":"\u003cstring\u003e","type":"\u003cstring\u003e"},"dataType":"\u003cstring\u003e","displayName":"\u003cstring\u003e","fieldAggregationType":"\u003cstring\u003e","fieldRole":"\u003cstring\u003e","formula":"\u003cstring\u003e"},{"apiName":"\u003cstring\u003e","creationType":"\u003cstring\u003e","dataSource":{"sourceApiName":"\u003cstring\u003e","type":"\u003cstring\u003e"},"dataType":"\u003cstring\u003e","displayName":"\u003cstring\u003e","fieldAggregationType":"\u003cstring\u003e","fieldRole":"\u003cstring\u003e","formula":"\u003cstring\u003e"}]}