EHRbase Delete Composition - 403 Forbidden

Hi, I am trying to implement delete composition on my application using the delete composition endpoint :
{{host}}/ehrbase/rest/openehr/v1/ehr/{{:ehrId}}/composition/{{:compositionId}}

While hitting the endpoint from Postman the composition is getting deleted successfully, But while I am trying to hit the endpoint from my application frontend, I am getting 403 Forbidden with no other details.

Example of the delete call:
https://ehrbase002.ey.com/ehrbase/rest/openehr/v1/ehr/8f9b250f-b90b-438b-8191-82d9dd079223/composition/f668f73b-da0b-4a54-a46f-f598f3a2cf01::local.ehrbase.org::1

Any idea of what am I doing wrong?

It sounds like your application is not using (the correct) credentials. This is highly depending on your specific setup, application implementation and system + auth architecture.
With a successful Postman example setup in place, make sure to recreate the auth setup from Postman within your application.

4 Likes