Skip to main content

Update insight preferences

Available since 2021 Update 10

You can use REST APIs to update user insight preferences.

This workflow sample updates insight preferences for the current user to enable the insight email notifications.

info

Obtain the authorization token needed to execute the request using POST /api/auth/login.

Endpoint: PUT /api/insight/preferences

Sample Request Header:

"accept": "application/json"
"X-MSTR-AuthToken": "5f8qohkckd5d4tm18c9etbe0vd"

Sample Request Body:

{
"emailEnabled": true
}

Sample Curl:

curl -X 'PUT' \
'https://mci-v8fb5-dev.hypernow.microstrategy.com/MicroStrategyLibrary/api/insight/preferences' \
-H 'accept: */*' \
-H 'X-MSTR-AuthToken: 5f8qohkckd5d4tm18c9etbe0vd' \
-H 'Content-Type: application/json' \
-d '{
"emailEnabled": true
}'

Sample Response Body: N/A

Sample Response Code: 204 (The insight preferences are updated successfully.)