netbox/docs/customization
Arthur Hanson c9a62254d7
Fixes #22750: Validate Custom Script input and resolve object IDs in the REST API (#23119)
Validate REST script input before enqueueing jobs. Resolve ObjectVar
IDs to model instances and MultiObjectVar IDs to querysets, returning
HTTP 400 with errors nested under data when validation fails.

Share form preparation between the API and UI, including multi-value
defaults, while keeping validation out of the job runner to preserve
other execution paths. Exclude only known execution fields from script
data and prevent _notifications from leaking into CLI script input.

Document the REST compatibility changes, including required-field
validation and discarded undeclared keys. Add regression coverage for
object resolution, defaults, validation errors, and execution options.

Co-authored-by: Martin Burggraf <martin.burggraf@netclusive.com>
2026-09-07 13:11:14 +02:00
..
custom-fields.md Fixes #23010: Defer bulk changes to object data when adding/removing a custom field (#23011) 2026-08-26 10:51:59 -07:00
custom-links.md Closes #22607: Sanitize HTTP requests passed to template contexts for custom links (#22616) 2026-07-07 08:59:24 -05:00
custom-scripts.md Fixes #22750: Validate Custom Script input and resolve object IDs in the REST API (#23119) 2026-09-07 13:11:14 +02:00
custom-validation.md Documentation updates for v4.1 2024-07-31 16:26:21 -04:00
export-templates.md Merge main into feature 2025-04-10 17:17:21 -04:00
reports.md Closes #22935: Deprecate Custom Scripts (#22936) 2026-08-14 20:35:44 +02:00