Hi! I am trying to create an action to bacth to delete several meraki auth users, but I receive forbiden. Here is the code I am using: import requests
API_KEY = "my_api_key"
org_id = "my_org_id"
net_id = "my_net_id"
merakiAuthUserId = 'user_id_I_want_delete'
url = f"https://api.meraki.com/api/v1/organizations/{org_id}/actionBatches"
payload = {
"confirmed": True,
"synchronous": True,
"actions": [
{
"resource": f"/networks/{net_id}/merakiAuthUsers/{merakiAuthUserId}",
"operation": "destroy"
},
],
}
headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
}
response = requests.post(url, json=payload, headers=headers)
print('reponse:', response.text, response) I am sure Api key, network id, org id and user id are correct because I can create/update/delete users. I also try with the meraki python lib with the same result (403 forbiden) What am i doing wrong? I need to manage any special permission to create action batches? Thanks!
... View more