cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI Internal OData API not working GET requests returns 200 html and POST 401

aideko9
Discoverer
0 Kudos

Hello All,

I was trying to make api calls to my CPI but odata api is not working at all. When I tried this on neo system it was working properly, on cloudfoundry its not working.

When I try to call for example GET "/api/v1/IntegrationPackages", CPI returns html.

When I try to call any POST request with right basic auth authorization, CPI returns 401

I am sending requests to tenenat managment url and not on run time.

Please suggest here, what is the exact issue?

Regards,

Adam

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Adam,

You need to create service keys of API plan to use these system APIs. Also make sure proper roles are assigned to these so that you can get the data in API call.

Below might help you

https://blogs.sap.com/2021/07/13/using-cloud-integration-apis-with-tools-on-cloud-foundry-creating-a...

Regards,

Sriprasad Shivaram Bhat

aideko9
Discoverer
0 Kudos

Hello Sriprasad,

Your advice works prefectly.

Thanks,

Adam

Answers (0)