AnalyticsMetricsMetricidActive
Turns a metric on or off for future analyses. Separate from the edit above on purpose: a switch in the list should not have to send the title, the norms and the weight to say "stop measuring this".
AuthorizationBearer <token>
JWT Authorization header using Bearer scheme
In: header
Path Parameters
metricId*string
Definition to switch.
Format
uuidHeader Parameters
x-space-id?string
Space to act in. Omit to use the user's default space. Must be a space the user belongs to, otherwise the request is rejected.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://api.speaknode.com/api/Analytics/metrics/497f6eca-6276-4993-bfeb-53cbbbba6f08/active" \ -H "Content-Type: application/json" \ -d '{}'{
"success": true,
"error": "string",
"is_active": true
}