Skip to content

batch.networks.removeNetworkDevices has the incorrect operation #241

Closed
@rwilliams01123

Description

@rwilliams01123

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions