Upload a debian package to Apt hosted repo through Jenkins Pipeline

I am trying to upload a Debian package from my Jenkins build to an existing apt hosted repo. I am receiving the following. The post method is not implementing to send the package to the repository.

HTTP/1.1 405 POST

<span class="title">Error 405</span>
<span class="description">Method Not Allowed</span>