Hello,
I created custom metric and attached to one of the components. Then generated API token on account and tried to push some value there:
$ curl --request POST \ --url https://org.atlassian.net/gateway/api/compass/v1/metrics \ --user "$USER_EMAIL:$USER_API_KEY" \ --header "Accept: application/json" \ --header "Content-Type: application/json" \ --data "{ \"metricSourceId\": \"ari:cloud:compass:!id!:metric-source/!id!\", \"value\": $METRIC_VALUE, \"timestamp\": \"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\" }"
But getting:
{"timestamp":"2025-02-09T21:28:15.096+00:00","status":403,"error":"Forbidden","path":"/external/v1/metrics"}%
Documentation on API endpoint saying that user does not have permissions to push metrics, but have `Product Admin` permissions.
Maybe something with our plan, we use Free at this moment.
Any ideas what could be wrong and what to check?
Thanks everyone in advance!
https://developer.atlassian.com/cloud/compass/components/push-metric-values-using-a-curl-command/
https://developer.atlassian.com/cloud/compass/rest/v2/api-group-metrics/#api-compass-v1-metrics-post