I can also confirm that this works via REST and Json configuration:
"basic_constraints": {
"ca": true,
"path_len_constraint": 0
},
The key is realising the attributes are named to match the RFC replaced with snake_case: https://datatracker.ietf.org/doc/html/rfc5280#appendix-A