Logo
MicroStrategy REST API API Documentation

Get list of smart attributes templates.

GET {{baseUrl}}/api/model/attributes/:attributeId/smartAttributes/templates

Return a list of smart attribute templates that can be created.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization Token
X-MSTR-ProjectID
string Project ID
X-MSTR-MS-Changeset
string Changeset ID
Accept
string




RESPONSES

status OK

{ "smartAttributeTemplates": [ { "subType": "attribute_smart", "name": "15 min interval", "definition": { "smartAttributeType": "15_min_interval", "parameters": [], "ascending": true } }, { "subType": "attribute_smart", "name": "30 min interval", "definition": { "smartAttributeType": "30_min_interval", "parameters": [], "ascending": true } }, { "subType": "attribute_smart", "name": "Hour interval", "definition": { "smartAttributeType": "hour_interval", "parameters": [], "ascending": true } }, { "subType": "attribute_smart", "name": "Day interval", "definition": { "smartAttributeType": "day_interval", "parameters": [], "ascending": true } }, { "subType": "a
Curl
curl -X GET 'baseUrl/api/model/attributes/:attributeId/smartAttributes/templates' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-ProjectID: projectId' -H 'X-MSTR-MS-Changeset: rd_changesetId' -H 'Accept: application/json'

ENDPOINTS