cancel
Showing results for 
Search instead for 
Did you mean: 

SBPA Decisions API

07-07-2023 7:36 AM
1342 views 5 comments
0 Likes
SAP Managed Tags
Subscribe

Hello to everyone

I am trying to use SBPA Decisions with API (SAP Business Accelerator Hub). I have deployed my artifact and when I am trying to do the call through postman, I am receiving a 404 error.


My request body is this:


and my Decision's info is:




Thank you very much in advance

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

Archana
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Athina,

The only reason I can see is the wrong host URL. So, you have deployed your decision in some other SAP BTP account and you are using the host URL and other credential details from another service instance of another sub-account. Please confirm this. For Example: you have deployed the decision in EU10 account but using the URL of US10 etc.

Regards,
Archana

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

RuleService Revision works for me -- that is what's listed in the API.

404 error indicates that the URL or the rule service ID is wrong. Can you show the URL?

Jana_dK
SAP Mentor
SAP Mentor
0 Likes

Hi 3773 ,

in your payload you specified the RuleServiceRevision, but since you're using decision rules in SBPA, it should be RuleServiceVersion.


Kind Regards,

Jana