0

I have an artifact called "test" in my artifactory. The package type of that artifact is pypi. Inside that artifact I have uploaded a python package called "authentication". The structure is as follows:

test

  • .pypi
  • authentication
    • 1.0.0
      • authentication.whl

Now I am trying to call the api:

POST https://myurl/xray/api/v1/scanArtifact?componentID=pypi://authentication:1.0.0 with basic auth and Content-Type application/json

I get the response:

Code 415 {"error": "Failed to parse Artifact"}

I am trying to follow the official documentation: https://jfrog.com/help/r/jfrog-rest-apis/scan-artifact

What am I missing? Thanks

JAYJKB
  • 95
  • 1
  • 11

0 Answers0