Shree_G
Mega Sage

Hello @Shane Monroe ,

 

401 typically indicates a Authentication issue. Try overriding the authentication profiles by adding below code if you are using a basic authorization:

 

client.setBasicAuth(username,Password);

 

You can either test your configuration through "System Web Services -> Outbound -> REST Message". This also gives you a ready code that can be used in any server side script using "Preview script usage".

ShirishGhule1_0-1743077872490.png

 

ShirishGhule1_1-1743077947988.png

 

 


If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.