Breaking change in custom scripts called with api on v4.x #16129
Labels
status: duplicate
This issue has already been raised
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v4.0.1
Python Version
3.11
Steps to Reproduce
Create a custom script and try to call it from the API. The old url has changed to an id and when calling the script from the API it will throw an error.
Expected Behavior
The script runs when called with the API.
The api url used to be /api/extras/scripts/ssl_checker_custom_script.SSLChecker/
Like: https://github.com/netbox-community/netbox/blob/develop/docs/customization/custom-scripts.md#via-the-api
Observed Behavior
Url has changed to /api/extras/scripts/1
Trying to run the custom script, with the new url will throw an error:
Running in the GUI (and getting the correct results):
The text was updated successfully, but these errors were encountered: