How to create entries with many-to-one relationship through API?

To relate collection types using a post request, you need to send the body data like:

{
    data: {
        customer: [id] #this is the id of the customer collection type 
    }
}
1 Like