mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Restrict the running of reports via API to POST requests
This commit is contained in:
@ -143,7 +143,7 @@ class ReportViewSet(ViewSet):
|
||||
|
||||
return Response(serializer.data)
|
||||
|
||||
@detail_route()
|
||||
@detail_route(methods=['post'])
|
||||
def run(self, request, pk):
|
||||
"""
|
||||
Run a Report and create a new ReportResult, overwriting any previous result for the Report.
|
||||
|
Reference in New Issue
Block a user