How can we upload artifacts via the REST API?

Is it possible to upload an artifact (or set of artifacts) via REST API?
I figured out how to access published artifacts but cannot seem to find how to upload new ones via the REST API.

If this is possible can you give sample REST requests for user admin (with default password) to upload:
First, 1 file f and to repository "releases", group ID g1, artifact id a1 and version 1.0
Second, a set of file f1 and f2 and to repository "releases", group ID g1, and both version 1.0

1 person has
this question