| Description |
This article describes the steps to resolve the '405 Method Not Allowed' error when using the API to generate a system backup on FortiGate. The error occurs when the API request is made using the GET method, which is no longer supported in newer FortiGate versions for the '/api/v2/monitor/system/config/backup' API call |
| Scope | FortiGate 7.4.0+ and 7.6.0+ |
| Solution |
On occasion, changes to specific API calls are made in newer versions of FortiOS. Technical details regarding each REST API call on different FortiOS versions are found on the FortiNet Devellopper Network, which requires authorization to access. The '405 Method Not Allowed' error indicates that the HTTP method used is not supported by the specific API call in question.
Starting from FortiOS 7.6.0, the '/api/v2/monitor/system/config/backup' API call was updated to use the POST method instead of GET.
Modify the API request to use the POST method instead .
POST https://<FortiGate_IP>/api/v2/monitor/system/config/backup?scope=global Example using curl:
Verification:
Additional Information:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.