Trying to use API to publish event, getting error "event name is required"

I am trying to publish an event using the Particle API.

Here is the URL I am using:
https://api.particle.io/v1/devices/events?name=myevent&data=test&access_token=XXXX&private=true&ttl=60

However it is giving me this response:
{"ok":false,"error":"event name is required"}

Am I missing some parameter or something like that?

Thanks in advance,
Abdeet

EDIT: I tried using curl and it worked. Here is the command:
curl https://api.particle.io/v1/devices/events -d "name=myevent" -d "data=test" -d "access_token=XXXX"

I’m not sure what I’m missing with Postman

EDIT: I just realized what mistake I made. It turns out that I was trying to give it the data as params in the url, when it had to be supplied in the body as JSON.

Hopefully this helps anyone else that comes across this same problem.