Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch.networks.removeNetworkDevices has the incorrect operation #241

Closed
rwilliams01123 opened this issue Jan 14, 2024 · 2 comments · Fixed by #244
Closed

batch.networks.removeNetworkDevices has the incorrect operation #241

rwilliams01123 opened this issue Jan 14, 2024 · 2 comments · Fixed by #244

Comments

@rwilliams01123
Copy link

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 added a commit that referenced this issue Jan 16, 2024
Includes many black formatting updates.
@TKIPisalegacycipher
Copy link
Collaborator

@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
Copy link
Author

Verified as working, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants