Logo
MicroStrategy REST API API Documentation

Modify existing smart attributes or create new if objectId is omitted.

PUT {{baseUrl}}/api/model/attributes/:attributeId/smartAttributes

If objectId exists then smart attribute is updated. When objectId is not specified then a new smart attribute is created. A 15mininterval smart attribute is required to create any higher level (for eg: 30mininterval) smart attribute.

 

Body PARAM

Key Datatype Required Description 



HEADERS

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




RESPONSES

status





Curl
curl -X PUT 'baseUrl/api/model/attributes/:attributeId/smartAttributes' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-MS-Changeset: rd_changesetId' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"smartAttributes":[{"subType":"attribute_smart","name":"Day (15 min interval)","definition":{"smartAttributeType":"15_min_interval","ascending":true}}]}'

ENDPOINTS