meraki / dashboard-api-python

Official Dashboard API library (SDK) for Python
MIT License
293 stars 154 forks source link

batch.networks.removeNetworkDevices has the incorrect operation #241

Closed rwilliams01123 closed 10 months ago

rwilliams01123 commented 10 months ago

making the call you receive the following exception: meraki.exceptions.APIError: organizations, createOrganizationActionBatch - 400 Bad Request, {'errors': ['create operation is unsupported for /networks/{network_id}/devices/remove.']}

Current code: action = { "resource": resource, "operation": "create", "body": payload }

Changing the operation to 'remove' fixes the issue. Working code: action = { "resource": resource, "operation": "remove", "body": payload }

TKIPisalegacycipher commented 10 months ago

@rwilliams01123 thank you for reporting this. Thanks to your report I identified a number of other issues and you will see these fixed shortly. You will need to upgrade to 1.42.0 to resolve this issue.

rwilliams01123 commented 10 months ago

Verified as working, thank you!