Logo
MicroStrategy REST API API Documentation

Reload (update) the schema

POST {{baseUrl}}/api/model/schema/reload

Reloads (updates) the schema.

Set Prefer to respond-async to execute this API asynchronously. Use GET tasks APIs to check the status of the task.

A project ID and authorization token are required to execute the request. An authorization token can be obtained using Authentication endpoints.

updateTypes is required in the request body. This field can contain empty, any of the following options, or all them: * tablekey: Use this option if you changed the key structure of a table. * entrylevel: Use this option if you changed the level at which a fact is stored. * logical_size: Use this option to recalculate logical table sizes and override any modifications you made to logical table sizes.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-MSTR-AuthToken
string (Required) Authorization Token
Prefer
null Set to `respond-async` to execute this API asynchronously.
X-MSTR-ProjectID
string (Required) Project ID
Content-Type
string




RESPONSES

status



Curl
curl -X POST 'baseUrl/api/model/schema/reload' -H 'X-MSTR-AuthToken: authToken' -H 'Prefer: ' -H 'X-MSTR-ProjectID: projectId' -H 'Content-Type: application/json' -d '{"updateTypes":["table_key","entry_level","logical_size","clear_element_cache"]}'

ENDPOINTS