Hi All,
I am trying create a backup of a network with the below API . I am getting a 404. API Key, org ID & net ID are correct.
Is this the correct API. may you please suggest.
import requests
# Define API endpoint and parameters
headers = {
"X-Cisco-Meraki-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
# Send API request
response = requests.post(url, headers=headers)
# Check response
if response.status_code == 201:
print("Backup created successfully.")
# Access the backup URL from the response
backup_url = response.json()["url"]
print("Backup URL:", backup_url)
else:
print("Failed to create backup. Status code:", response.status_code)