Go REST
A

Authentication failed

Arjun almost 3 years ago 4837 views 1 replies

I have created the collection variable of Api token. When I'm creating user It's showing me error message Authentication failed in postman.
Below is the response:
{
message: Authentication failed
}
Please help.

1 reply
Z
zeevy almost 3 years ago

curl -i -H Accept:application/json -H Content-Type:application/json -H Authorization: Bearer ACCESS-TOKEN -XPOST https://gorest.co.in/public/v2/users -d '{name:Tenali Ramakrishna, gender:male, email:tenali.ramakrishna@15ce.com, status:active}'

replace ACCESS-TOKEN with your access token and try in the console ( linux ). Postman can import the curl examples also

Your reply

Markdown supported