Go REST
S

How can we get 400 from POST /users endpoint?

Sarthak Gupta over 1 year ago 2564 views 3 replies

I have tried with invalid request body but always getting response 401 with message authentication failed.

3 replies
Z
zeevy over 1 year ago

{'adff' => asdfsdaf}

try above body

Z
zeevy over 1 year ago

with valid token

S
Sarthak Gupta over 1 year ago

Hi
i get 401 error with valid token. Below is my request and response

POST https://gorest.co.in/public/v2/users/

{
adff: ahshshsh
}
Response

401 Unauthorized
{
message: Authentication failed
}

Your reply

Markdown supported