createRelationship
Create a DataSync relationship linking two entities under a relationship class.
Unlike createMembership, className is required — this API targets the caller-supplied relationship class rather than a fixed built-in one, and the two ends are the generic entityAId / entityBId rather than a Channel/User pair.
Parameters
Identifier of entity A to link. Must reference an existing entity — a missing or wrong-class entity is rejected.
Identifier of entity B to link. Must reference an existing entity — a missing or wrong-class entity is rejected.
Relationship class identifier.
Version of the relationship class the payload conforms to. Relationship classes are versioned (an integer >= 1); pass the version of the class you are targeting.
Optional relationship identifier. When null the server generates one.
Optional relationship status.
Optional arbitrary JSON object payload.