I tried searching for this and wasn’t able to find any questions asking for this:
is there a way to rename a script file? Sorry if this has already been answered or is explained somewhere. Searching Google and the Apigee Community board did not have any results. Thanks!
1 Like
Its not possible to rename a script file. As an alternate approach what you can do is this:
-
copy the contents of script 1 into a new script with the desired name
-
update the policy to use the new script name instead of script 1
-
delete script 1
-
save it as a new revision (else script 1 would still appear even though you intended to delete it)
-
deploy the new revision and test
1 Like
Great Question @Timothy , +1 for asking same,
I believe you are talking about Apigee Edge Proxy Bundle Javascript File, If Yes,
Unfortunately, I can able to reproduce your issue, I don’t see an option to update same in Apigee Edge UI. We will hopefully fix same.
In the meantime, let me offer you quick workaround to solve above issue,
- Download the API Proxy Bundle
- Unzip Same
- Navigate to apiproxy/resources/jsc
- Rename file & upload same as a new revision.
- Make sure you change all the references in policies.