cancel
Showing results for 
Search instead for 
Did you mean: 

SAP API Management and SAP CPI Odata Adapter $metadata Issue

0 Kudos

Good day,

While developing an OData API to a SuccessFactors backend the resources are exposed.

We added a policy to this API to verify the APIKey.

We can access the resources in POSTMAN.

However when using a SAP CPI odata adapter it tries to query the metadata while passing the correct APIKey, we cannot access /$metadata

We get the error:

{

"fault": {

"faultstring": "Invalid ApiKey for given resource",

"detail": {

"errorcode": "oauth.v2.InvalidApiKeyForGivenResource"

}

}

}

API Query: {{BASE_API_ENDPOINT}}/SF/ECPersonalInformation/$metadata

Has anyone experienced this before and able to resolve?

Regards,

Brandon

Accepted Solutions (0)

Answers (1)

Answers (1)

Bais
Participant
0 Kudos

How do you pass APIkey?

show us a screenshot of your HTTP connection properties.

0 Kudos

APIKey is passed in the request header.

Bais
Participant
0 Kudos

This is Postman, I mean cpi Adapter HTTP connection properties.