The easiest method to pull this off is to use the "componentID" with that api call.
For help figuring out what your component id is, use this link: https://jfrog.com/help/r/xray-rest-apis/component-identifiers