API : /v1/components Upload a single component : can't upload on snapshot repository

I try to upload an artifact into a snapshot repository and I obtain :
query :

curl -X 'POST' \
  'https://nexus.xxx.fr:10443/service/rest/v1/components?repository=prj-snapshot' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -H 'NX-ANTI-CSRF-TOKEN: 0.3328876436606558' \
  -H 'X-Nexus-UI: true' \
  -F 'maven2.groupId=ww/xx/yy/zz' \
  -F 'maven2.artifactId=idartifact.zip' \
  -F 'maven2.version=v1.2.3' \
  -F 'maven2.generate-pom=true' \
  -F 'maven2.asset1=@myfic.zip;type=application/x-zip-compressed' \
  -F 'maven2.asset1.extension=zip'
    "id": "*",
    "message": "Upload to snapshot repositories not supported, use the maven client."

the same query with a public repository and the file is uploaded.

Can someone help me ?


The REST upload API does not support SNAPSHOT repositories. If you want to upload snapshots you should use maven.

Bad news, I don’t use maven or graddle…
I use only cul