<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SBPA Rules Runtime API returns 403 &amp;quot;bpm.rulesruntime.... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sbpa-rules-runtime-api-returns-403-quot-bpm-rulesruntime-error-quot-despite/qaa-p/14425278#M4944573</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On the path, make sure you have the correct Shared Environment ID. The URL should be "&lt;SPAN&gt;/public/rule/runtime/rest/v2/rule-services?environmentId=&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;SBPAEnvironmentID&amp;gt;" and that the rule&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;is deployed to the specified Environment.&lt;/P&gt;&lt;P&gt;Additionally, create an API trigger for the Decision. You can find the details in the &lt;A href="https://help.sap.com/docs/build-process-automation/sap-build-process-automation/add-api-trigger-to-decision" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regarding the header content, it should be "api-key" and not "&lt;SPAN&gt;Irpa-api-key". As one should not have secrets in the code, see also the &lt;A href="https://help.sap.com/docs/build-process-automation/sap-build-process-automation/use-api-keys" target="_self"&gt;documentation&lt;/A&gt; on setting up things to use the API key from a CAP application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2026 08:15:18 GMT</pubDate>
    <dc:creator>pcf_pt</dc:creator>
    <dc:date>2026-06-23T08:15:18Z</dc:date>
    <item>
      <title>SBPA Rules Runtime API returns 403 "bpm.rulesruntime.error" despite valid API key — CAP remote</title>
      <link>https://community.sap.com/t5/technology-q-a/sbpa-rules-runtime-api-returns-403-quot-bpm-rulesruntime-error-quot-despite/qaq-p/14424470</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm calling the SAP Build Process Automation (SBPA) Rules Runtime API from a CAP (Node.js) backend using cds.connect.to()&amp;nbsp;and getting a 403 error even though I'm passing an API key generated from the SBPA Lobby.&lt;BR /&gt;&lt;BR /&gt;{ "code": "bpm.rulesruntime.error", "message": "User does not have sufficient privileges to access the environment." }&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;const spa = await cds.connect.to("baseline-spa-cc");&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;const response = await spa.send({&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;method: "POST",&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;path: `public/rule/runtime/rest/v2/rule-services?environmentId=shared`,&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;headers: {&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;"Content-Type": "application/json",&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;"Irpa-api-key": "****"&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;},&lt;BR /&gt;body: payload&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;});&lt;BR /&gt;&lt;BR /&gt;#SPBA&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2026 11:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sbpa-rules-runtime-api-returns-403-quot-bpm-rulesruntime-error-quot-despite/qaq-p/14424470</guid>
      <dc:creator>Madhusudan</dc:creator>
      <dc:date>2026-06-22T11:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: SBPA Rules Runtime API returns 403 "bpm.rulesruntime....</title>
      <link>https://community.sap.com/t5/technology-q-a/sbpa-rules-runtime-api-returns-403-quot-bpm-rulesruntime-error-quot-despite/qaa-p/14425278#M4944573</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;On the path, make sure you have the correct Shared Environment ID. The URL should be "&lt;SPAN&gt;/public/rule/runtime/rest/v2/rule-services?environmentId=&amp;lt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;SBPAEnvironmentID&amp;gt;" and that the rule&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;is deployed to the specified Environment.&lt;/P&gt;&lt;P&gt;Additionally, create an API trigger for the Decision. You can find the details in the &lt;A href="https://help.sap.com/docs/build-process-automation/sap-build-process-automation/add-api-trigger-to-decision" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regarding the header content, it should be "api-key" and not "&lt;SPAN&gt;Irpa-api-key". As one should not have secrets in the code, see also the &lt;A href="https://help.sap.com/docs/build-process-automation/sap-build-process-automation/use-api-keys" target="_self"&gt;documentation&lt;/A&gt; on setting up things to use the API key from a CAP application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2026 08:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sbpa-rules-runtime-api-returns-403-quot-bpm-rulesruntime-error-quot-despite/qaa-p/14425278#M4944573</guid>
      <dc:creator>pcf_pt</dc:creator>
      <dc:date>2026-06-23T08:15:18Z</dc:date>
    </item>
  </channel>
</rss>

