I’ve moved your post to a new thread since it was only tangentially related to the thread you added it to.
Double-checking the Web API docs, I have the feeling that the error message might be a little out of date. I’m seeing component as a valid parameter key. Since you say you’ve tried that, then I have to assume the value you provided wasn’t accurate.
Have you tried this via the UI? The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.
Thank you for the quick response. I still cannot get the curl command I attempted to work, but I have managed to programatically hit the endpoint successfully.
I’m guessing uriencode() somehow fixed my problem.
I was able to pull the vulnerabilities, however, the API responds with a numerical value for this MetricKey.
How do I extrapolate what the alphabetical value (A,B,C,D,E) of this field should be from this information?
Numeric to alphabetic is a simple 1-to-1 translation. Unfortunately, I don’t remember the direction (whether A is 1 or 5) but it should be easy to decode by comparing your project dashboard to the results.
This is apples-and-oranges. The Vulnerabilities metric is a count of open Vulnerability issues. The Security Rating is a letter grade. It’s quite natural that one’s value doesn’t make sense in context of the other’s scale. There should have been some data in what you got from the metrics web service, but the docs should also help.