How to upload docker image using API?

How to upload docker image using API?
Version:Sonatype Nexus Repository ManagerOSS 3.32.0-03

I use docker save -o a.tar nginx:v1 to save the image, and then upload it through the API interface with an error of 500.

Am I using it the wrong way?

error as follows:

Hi catcat,
We’re sorry, but uploading Docker images via UI or REST is not supported.

You can upload Docker images to your hosted repository using regular Docker CLI as shown in the documentation: Pushing Images

OK, thank you for your reply