From f1518d9ad9b81593b3e36afecccd5c4861683dfa Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 31 Mar 2026 08:30:55 -0700 Subject: [PATCH] update docs --- docs/customization/custom-scripts.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/customization/custom-scripts.md b/docs/customization/custom-scripts.md index 81b094f24..247eeb8f1 100644 --- a/docs/customization/custom-scripts.md +++ b/docs/customization/custom-scripts.md @@ -386,14 +386,14 @@ A complete date & time. Returns a `datetime.datetime` object. ## Uploading Scripts via the API -Script modules can be uploaded to NetBox via the REST API by sending a `multipart/form-data` POST request to `/api/extras/scripts/`. The caller must have the `extras.add_scriptmodule` and `core.add_managedfile` permissions. +Script modules can be uploaded to NetBox via the REST API by sending a `multipart/form-data` POST request to `/api/extras/script-modules/`. The caller must have the `extras.add_scriptmodule` and `core.add_managedfile` permissions. ```no-highlight curl -X POST \ -H "Authorization: Token $TOKEN" \ -H "Accept: application/json; indent=4" \ -F "upload_file=@/path/to/myscript.py" \ -http://netbox/api/extras/scripts/ +http://netbox/api/extras/script-modules/ ``` Alternatively, a script module can be linked to an existing data source and data file instead of uploading a file directly: @@ -403,7 +403,7 @@ curl -X POST \ -H "Authorization: Token $TOKEN" \ -H "Content-Type: application/json" \ -H "Accept: application/json; indent=4" \ -http://netbox/api/extras/scripts/ \ +http://netbox/api/extras/script-modules/ \ --data '{"data_source": 1, "data_file": 42}' ```