Solved

error 400 while testing postman API

  • 27 August 2023
  • 3 replies
  • 60 views

Badge +3

hi guys, 

 can you please tell me the reason of the error below while API testing in Postman:
any help is very much appreciated

 

icon

Best answer by Ben Petree 28 August 2023, 04:47

View original

3 replies

Userlevel 3
Badge +3

@Ishita Mathur 

It worked for me when I removed the body content and replaced it with {} since I didn't want to pass any parameters.

Example: {{baseUrl}}/api/v1/projects/{{project}}/assets/list

Request body: {}

 

Status 200OK

Time:289 ms

Size:13.51 KB

 

Userlevel 3

Hi @Ishita Mathur, did you try the above? Did it work?

Badge

It looks like you haven’t replaced any of the parameter value’s placeholders. You might try deselecting the ones you aren’t using.

Reply