Samson Maben
Samson Maben

Reputation: 320

Post method error using Postman app

When I make this API post Request /posts/{id}/comments/add :

https://api.stackexchange.com/2.2/posts/45754385/comments/add?body=%20A%20comment%20Post%20test&key=**********&access_token=********&preview=true&filter=default&site=stackoverflow

I get this error:

{
  "error_id": 400,
  "error_message": "POST methods expects all parameters to be submitted as a form, not on the query string",
  "error_name": "bad_parameter"
}

any Solution for this?

Upvotes: 1

Views: 600

Answers (1)

Yauheni Shauchenka
Yauheni Shauchenka

Reputation: 753

So select "POST" instead of "GET" in postman and put your body to the POST body instead of address line

enter image description here

Upvotes: 1

Related Questions