def METHOD_NAME(rotkehlchen_api_server):
    data = _populate_ignored_actions(rotkehlchen_api_server)
    # try to add at least one already existing id
    response = requests.put(
        api_url_for(
            rotkehlchen_api_server,
            'ignoredactionsresource',
        ), json={'action_type': 'trade', 'data': ['1', '9', '11']},
    )
    assert_error_response(
        response=response,
        status_code=HTTPStatus.CONFLICT,
        contained_in_msg='One of the given action ids already exists in the database',
    )
    # get all entries and make sure nothing new slipped in
    rotki = rotkehlchen_api_server.rest_api.rotkehlchen
    with rotki.data.db.conn.read_ctx() as cursor:
        result = rotki.data.db.get_ignored_action_ids(cursor, None)
    serialized_result = {k.serialize(): v for k, v in result.items()}
    assert serialized_result == data