11-22-2021 04:20 AM
Hi Team,
We are trying to post some records in SAP S4 Hana using Rest API.
We are getting 401 and error when we perform POST operation using REST API. below is the error screen shot
11-22-2021 04:27 AM
401 Unauthorized client error status response code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
What type of the authorization are you using?
Regards,
Spiro Taleski
11-22-2021 05:46 AM
config_authType=Basic
11-22-2021 05:55 AM
I am not very familiar with the SAP Hana, but based on the screen(config_AuthType = Basic)I can see that it is a basic authentication used. Ensure that the credentials that you are using are valid ones, or maybe there is additional property that needs to be added apart from basic Auth credentials. I believe that the SAP REST API specification/swagger contains all the details of how the API’s should be used.
Regards,
Spiro Taleski