I'm looking the the API equivalent of what's described inuserguide.m-files.com/.../relationship_operations.html
I'm assuming this can only be achieved by uing the built-in properties Document, Document collection, Collection members (document collections) and Collection members (documents)
https://userguide.m-files.com/user-guide/latest/eng/built-in_property_definitions.html
I see we can view relationships @ https://developer.m-files.com/APIs/REST-API/Reference/resources/objects/type/objectid/version/relationships/ but it looks like there's nothing available to edit them.