Hi there, can the `update` button on a metric be i...
# ask-questions
a
Hi there, can the
update
button on a metric be instrumented via API? I set a
cron
schedule in the experimentation settings, but it doesn't seem like the metrics get updated on that schedule. Posting to the
snapshot
endpoint on an experiment will refresh the experiment, but doesn't cause the metrics to update. I tried to run this and it gave me a
jwt malformed
error.
Copy code
curl -v -X POST -H "Authorization: Bearer [obfuscated]" <https://api.growthbook.io/api/vi/metric/:id/analysis>
f
You could open an issue to add an api endpoint for that
🙏 1
I don’t think we have it atm
a
How does this work normally though? I didn't assume that I would need to manually update the metrics.
Is there some scheduler behind this?
f
There is, but we run a query for that metric in that experiment. As we build out more analytics here will expand the pure metrics side
👍 1
a
Helpful! Was just a little confused as to why we needed to refresh these metrics. Looks like the experiment query joins all the way through and aggregates the metrics for each experiment being run.