I’m trying to create a new user on dummyapi.io using Postman, but I keep getting a PARAMS_NOT_VALID error. I’m sending a POST request to the /user/create route with the firstName, lastName, and email fields in the request body, but I keep getting the same error. Does anyone know what could be causing this issue? Are there any additional fields I should include or any specific values I should send? Any help would be greatly appreciated.
I was trying to enter the data in Json format
{
"firstName": "Juan",
"lastName": "Pérez",
"email": "[email protected]"
}
This is the error that rings the request in postman
{
"error": "PARAMS_NOT_VALID"
}
Here's what the dummyapi.io documentation says:
Create User
Create new user, return created user data.
Body: User Create (firstName, lastName, email are required)
POST
/user/create
Response: User
You need to make sure you have:
app-idHTTP request header sethttps://dummyapi.io/data/v1/user/createPOSTContent-Typeheader should be set toapplication/json(in Postman selectBody -> Raw -> JSON (from the dropdown))I've tested the following request with success both in
curland Postman:You can either just run the
curlcommand or import it into Postman usingImportand then just paste the command.Expected result should be something along the lines of this:
Status
200 Ok