Retrofit - POST request with @Path and without parameters
<p>The request to API as follows: </p>

<blockquote>
  <p>POST /verify/phone/{userid}/</p>
  
  <p>Mandatory parameters: userid  (integer)</p>
  
  <p>Return: nothing</p>
</blockquote>

<p>I receive <code>Bad Request</code> error all the time if I want to verify user with id 1 (for example):</p>

<p><code>Response{protocol=http/1.1, code=400, message=Bad Request, url=http://dummyapi.com/verify/phone/1/}</code></p>

<p>Posting the same request using Postman works well.</p>

<p><strong>Code</strong>:</p>

<p><code>@POST("/verify/phone/{userid}/")
 Call&lt;String&gt; postVerifyPhone(@Path("userid") int userId);</code></p>

<pre><code>public void postVerifyPhone(int userID){
    showProgressBar();

    RestClient.GitApiInterface service = RestClient.getClient();
    Call&lt;String&gt; call = service.postVerifyPhone(userID);
    call.enqueue(new Callback&lt;String&gt;() {
        @Override
        public void onResponse(Response&lt;String&gt; response) {
            hideProgressBar();

            if (response.isSuccess()) {
                String result = response.body();
            } else {
                Log.d("Fail: ", response.body()); //everytime here with Bad Request
            }
        }

        @Override
        public void onFailure(Throwable t) {
            hideProgressBar();
        }
    });
}
</code></pre>

<p>I'm using String as the return type since there's message returned when there're no user with requested ID in db. </p>

<p><strong>What could be a cause?</strong></p>