Suppressing Events from Your Own REST Calls

If your integration makes REST API calls that modify OPERA Cloud and you do not want to receive the Business Events generated by those same calls, include this header on your write requests (POST/PUT/PATCH/DELETE):

x-externalSystem: <externalSystemCode>
Where to find the value:
  1. In the OHIP Developer Portal, open your application, select the Events tab, and then select the Subscribed tab.
  2. Use the value shown as "Application's external system code."

Example:

curl -X PUT "https://<gateway>/.../resource" -H "Authorization: Bearer <Access_Token>" -H "Content-Type: application/json" -H "x-externalSystem: <externalSystemCode>" -d "{ ... }"

Notes:

  • Send this header on each write request you want to self-suppress.
  • GET/HEAD requests do not require this header.
  • This suppresses events triggered by your own writes; events from other publishers/systems are still delivered.