Query on Docker Remote API for creating a container

Hi Team,

I am trying to create a container using the Remote API “containers/create”.
I am able to create the container successfully, but the container got created with a random name.

I would like to know the way to pass a name to the container while creating it.
Is there a way to override the existing container? (I knew the workaround of removing the existing container and the recreating a new one. But, I am looking for a single call which will override the existing container)
Quick help is very much appreciated.

Thanks,
Pavan

Pass /containers/create?name= as your URL string and define the name you wish to use.