API v2: Use true/false as rewire parents value

Follow-up to #1886. See commits for reasoning.

Please merge release/3.0 into dev after merging this.


Relates to https://www.openproject.org/work_packages/15243