cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unable to Post Record in SAP using REST API

Bhavya_Sharma
New Contributor

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
image

3 REPLIES 3

SpiroTaleski
Valued Contributor

@Bhavya_Sharma

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

config_authType=Basic
image

@Bhavya_Sharma

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