This command allows you to add one or more relationships between objects.
This command has two modes.
- Supply the IDs of the parent and child objects you want to create the relationship between.
- Supply the Parent ID of the Object to link from or to and a key value for part 1 of an object in the specified list.
Adding relationships via a Key value allows you to link to or from an object without knowing its ID. You just need to know the value in the first part of the object. You can use a Key lookup for the parent or child end of the relationship.
|1||parent_id||Current Object ID||String||Parent Object ID or comma separated List of IDs enclosed in brackets.|
Relationship Type ID
This should be positive but if it is negative then the parent and child IDs will be swapped before the relationship is added.
Use 0 for the default relationship level.
Use -1 to add a relationship with the default relationship level but only if it hadn't previously been added.
|4||child_id||0||String||Child Object ID or comma separated List of IDs enclosed in brackets.|
|-||parent_key||String||Parent Key value. See explanation above for adding relationships via a key.|
|-||child_key||String||Child Key value. See explanation above for adding relationships via a key.|