I’m trying to programmatically populate the CMS using the content management api.
Sadly I cannot seem to find any information on how to “link” records together.
A push in the right direction would be very much appreciated.
To elaborate my situation;
I have a model called “School” and a model called “Partnership”.
A “School” can have one partnership so I want to create a field on “School” called “partnership” and attach the correct partnership which was previously created.
So I’m assuming I need to 2 things
- create the field but I cannot find what the type should be.
- look up which record was previously created to get some internal ID to provide as value to the field.