GET /api/v1/insight/metadata/(ci-name)
The metadata includes the dimension and measure that are part of the calculated insight.
Syntax
- HTTP method
- GET
- Availability
- Salesforce CDP v1.0, Salesforce v51.0
- Formats
- REST
- URI
- /api/v1/insight/metadata/(ci-name)
Request Parameters
| Field Name | Field Type | Description |
|---|---|---|
| ci_name | string | Required. The calculated insight name. Example: IndividualChildrenCount__cio |
Examples
- Request
-
1http://{TSE}.360a.salesforce.com/api/v1/insight/metadata/{ci-name} - Response
-
1{ 2 "metadata": [ 3 { 4 "name": "Avg_Spends__cio", 5 "dimensions": [ 6 { 7 "name": "Id__c", 8 "type": "STRING" 9 }, 10 { 11 "name": "FirstName__c", 12 "type": "STRING" 13 } 14 ], 15 "measures": [ 16 { 17 "name": "Avg_Spend__c", 18 "type": "NUMBER" 19 } 20 ], 21 } 22 ] 23 }
HTTP Responses
| Response | Reason |
|---|---|
| 200 OK | Callback successfully verified |
| 400 Bad Request | Invalid request |
| 403 Forbidden | Failed to pass authorization. |
| 404 Not Found | Incorrect callback ID, verification key, or both. |
| 422 Unprocessable Entity | Attribute name used in fields/filter parameter does not exist. |
| 500 Server Error | Internal error |