title: discogs post https://api.discogs.com/marketplace/listings? returned a response status of 422 null
body: <p>I'm trying to post api.discogs.com/marketplace/listings?... in java.</p>
  <p>When I try to make a newlisting post, the result is &quot;returned a response status of 422 null&quot;.</p>
  <p>&quot;422 Unprocessable Entity
  Your request was well-formed, but there’s something semantically wrong with the body of the request. This can be due to malformed JSON, a parameter that’s missing or the wrong type, or trying to perform an action that doesn’t make any sense. Check the response body for specific information about what went wrong.&quot;</p>
  <p>&quot;Invalid release_id:expected integer&quot; is displayed as a message.</p>
  <p>My get methods work but post doesn't.</p>
  <pre><code>int release_id;
  String condition;
  int listing_id;
  String sleeve_condition;
  String comments;
  String allow_offers;
  string status;
  String external_id;
  String location;
  string weight;
  String format_quantity;
  private Double price = Double.valueOf(0);
  
  json = doPost(&quot;/marketplace/listings?release_id=&quot; + product.getRelease_id() + &quot;&amp;sleeve_condition=&quot; + product.getCondition() + &quot;&amp;price=&quot; +product.getPrice());
  
  &quot;https://api.discogs.com/marketplace/listings?release_id=1113859&amp;condition=poor&amp;price=2000.0&amp;status=Mint&quot;
  
  
  
     WebResource webResource = initRest(restUrl);
      ClientResponse resp = webResource.type(&quot;application/json&quot;)
              .header(&quot;Authorization&quot;, &quot;Discogs token=&quot; + token)
              .header(&quot;JTLSyncTool/0.1&quot;, &quot;+https://#####&quot;)
              .post(ClientResponse.class);
  </code></pre>
  <p>Does anyone have an idea?</p>
  <p>Thanks everyone!</p>