on 2024 Sep 04 10:16 AM
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.
User | Count |
---|---|
68 | |
10 | |
10 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.