#21364 update swagger endpoint for /api/extras/scripts/ #362

Closed
opened 2026-04-05 16:27:25 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @arthanson on 2/12/2026

Fixes: #21364

Removed the post without script id from /api/extras/scripts/ you can only do GET to the base one and GET/POST to /api/extras/scripts/{id}/

Also updated the /api/extras/scripts/{id}/ schema output as it wasn't correctly showing the required fields for data and commit for the request body.

Monosnap NetBox REST API 2026-02-12 13-43-50 Monosnap NetBox REST API 2026-02-12 13-45-06
*Originally created by @arthanson on 2/12/2026* ### Fixes: #21364 Removed the post without script id from `/api/extras/scripts/` you can only do GET to the base one and GET/POST to `/api/extras/scripts/{id}/` Also updated the `/api/extras/scripts/{id}/` schema output as it wasn't correctly showing the required fields for data and commit for the request body. <img width="1283" height="395" alt="Monosnap NetBox REST API 2026-02-12 13-43-50" src="https://github.com/user-attachments/assets/e1a55e13-2021-4bff-a042-b7fb26cc5e7b" /> <img width="1286" height="874" alt="Monosnap NetBox REST API 2026-02-12 13-45-06" src="https://github.com/user-attachments/assets/229ae27c-5ad2-4a97-aecf-3d3284c8221f" />
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#362