1

I want to send array via postman in POST request. I want to send data like this

{
    "users": [1, 2]
}

I read this post Is it possible to send an array with the Postman Chrome extension?

and reproduced, but received an error (see image). How can i fix the error?

I am using django rest framework and server answered that

request["users"] is None

enter image description here

swor
  • 551
  • 5
  • 15

1 Answers1

2

you cannot send array through formdata , if your endpoint expects json then send it as body>raw>json:

enter image description here

PDHide
  • 15,234
  • 2
  • 19
  • 35