Hello. I'm attempting to create a Joined View via the ArcGIS API for Python and ArcGIS REST API. I've seen examples that say to first use create_service() to create an empty feature service (with is_view=true) and then use add_to_definition() to add layers and set up the join via "relatedTables". Within the relatedTables is a "type" property to set the join type (LEFT, RIGHT, INNER, FULL), but I haven't found anything on how to set the join operation, aka join relationship (one to one versus one to many).
If I go to create a Joined View manually in ArcGIS Online there is an option for it, but I'm unsure how to set this via the API. I've also been unable to figure out how/where to check for this property on existing views that have been created manually (was hoping I could find the property that the API wants from there). There doesn't seem to be anything related to that in the service JSON, though.

___________
Edit for future internet wanderers: This support article was updated to clarify the answer. In short, omit the "topFilter" section from the layer definition and it will behave as a 1:M