cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to update SAP APIM file resource using API Business Hub Enterprise APIs

namrata76
Explorer
0 Kudos
67

Hi All,

I am trying to update/create a file resource for an API in SAP APIM portal using the API BHE APIs.

I am able to retrieve the file resources for any particular API using the below URL:

GET https://<API tenant URL>/apiportal/api/1.0/Management.svc/APIProxies('<APIName>')/fileResources

However, while trying to create a new resource or update an existing one I am facing HTTP 403 (Forbidden error). I am not sure if the payload is incorrect or the method itself is not allowed, but I couldn't find any documentation for updating fileResources, policies or defaultFaultRules using the BHE APIs.

This is the payload I am using to update fileResources:

{"id":"<unique id of the resource>","name":"<Name of script>","scope":"APIPROXY","type":"js","content":"<javascript code>"}

I have already gone through this blog post - https://community.sap.com/t5/technology-blogs-by-sap/exploring-api-portal-and-api-business-hub-enter...

But there is no entry for fileResources. Any other documentation on this would be helpful too.

Thanks.

Accepted Solutions (0)

Answers (0)