createMembership
Create a DataSync membership linking a Channel and a User.
This API always targets the built-in Membership relationship class — there is no className parameter; the SDK fixes the class to Membership. Creating a Membership subclass is not supported here; that is served by the general /relationships API.
Parameters
Identifier of the Channel (entity A) to link. Must reference an existing Channel entity — a missing or wrong-class entity is rejected.
Identifier of the User (entity B) to link. Must reference an existing User entity — a missing or wrong-class entity is rejected.
Version of the Membership class the payload conforms to. Currently only version 1 exists — pass 1. New versions may be introduced in the future; when one is, opt in by passing its number.
Optional membership identifier. When null the server generates one.
Optional membership status.
Optional arbitrary JSON object payload.