cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue of MissingServletRequestParameterError while running Url on POSTMAN.

Former Member
0 Likes
1,025

Hi Team,

Please help me to solve this issue. { "errors": [ { "message": "Required String parameter 'password' is not present", "type": "MissingServletRequestParameterError" } ] }

I am using this Url to create a new customer and also passing the required attribute in body part od POSTMAN but still getting the same issue.

URI:POST https://localhost:9002/rest/v2/powertools/users

Body Parameters: login=john.doe@mail.com&password=1q2w3e4r &firstName=John&lastName=Doe&titleCode=mr

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Sandeep,

Postman uses a few syntax notations depends on what your RestAPI prefers to receive - Usually URL parameters are translated in sent requests into URL-encoded or JSON notations. Please try them out:

0. URL notation (how it would look if it was GET):

 localhost:9002/ws410/v2/powertools/users?login=john.doe@gmail.com&password=1q2w3e4r&firstName=John&lastName=Doe&titleCode=mr

1. X-www-form-urlencoded notation:

 login:john.doe@gmail.com
 password:1q2w3e4r 
 firstName:John
 lastName:Doe
 titleCode:mr

(translable from URL in tab: “Key-Value Edit” view, after clicking button "Parameters next to the url bar")

2. JSON notation:

 {
     "login":"john.doe@gmail.com",
     "password":"1q2w3e4r", 
     "firstName":"John",
     "lastName":"Doe",
     "titleCode":"mr"
 }

Best,

Marta

Former Member
0 Likes

Hi Marta,

Than you for your time. But I want to use the webservices using OCC that is from oauth2 extensions.

So , I have to get the token first using the url : **https://localhost:9002/rest/oauth/token** and then want to create new customer using the Url : **https://localhost:9002/rest/v2/powertools/users**

If you have any idea about this, please help me for the same.