Problem:
How to set parent post ID using CRED api hook 'cred_save_data'
Solution:
When using Types posts relationships, the parent of a given type is stored in a field: _wpcf_belongs_{parent-post-slug}_id
Let’s assume that we are displaying a Car post type that has a Maker as a parent post type.
Each Car will store its Maker (parent) id in the field _wpcf_belongs_maker_id.
So what you need to do is - Using whatever form you create entry you need to make sure that following code should be run in order to make relationship between your child and parent post you need to add postmeta key '_wpcf_belongs_event_id' with the parent ID:
For example:
update_post_meta($post_id, '_wpcf_belongs_event_id', $event_id);
You can find suggested solution with the following reply:
https://toolset.com/forums/topic/assign-current-user-as-parent-in-cred/#post-398571
Relevant Documentation:
https://toolset.com/documentation/user-guides/cred-api/#csd