I think it's bugged.
The furthest I was able to debug the issue is by looking at the errors spit out by:
print(error.context.response.raw_body)
The thing found by @Charlotte in the other topic was indeed one of the things I ran into. The code doesn't like it if you specify no create_organization_network.copy_from_network_id. Setting it to '' (empty string) doesn't work either. So I added an actual network in. But then in the end I got an error 500 which didn't give any hint as to what is happening.
The most verbose I could get was by using this piece of code instead of the original:
try:
result = networks_controller.create_organization_network(collect)
print(result)
except APIException as error:
print("Response code: ", error.response_code)
print("Request: ")
print(error.context.request.http_method)
print(error.context.request.query_url)
print(error.context.request.headers)
print(error.context.request.query_parameters)
print(error.context.request.parameters)
print(error.context.request.files)
print("Response: ")
print(error.context.response.status_code)
print(error.context.response.headers)
print(error.context.response.raw_body)
@DexterLaBora to the rescue?