Cannot associate event with other objects when creating?

Cannot associate event with other objects when creating?

I am attempting to associate an Event with one or more other objects when creating it via the API.

According to the API docs, the "Related_To" property is a jsonobject even though the description says "Provide the details about the entities the event is related."

If I include the Related_To property in my request as a simple object, as shown in the example, the API returns a 400 error with the response:

{
    "code": "INVALID_DATA",
    "details": {
        "expected_data_type": "jsonobject"
    },
    "message": "body",
    "status": "error"
}

As soon as I change this to be an array of objects, the API response is a 200, and the event is created successfully.

EXCEPT that it is not associated with any other records.

Obviously, the API docs are incorrect. Has anybody made this work?

This is my JSON request body that I am passing.

{
    "data": [
        {
            "Event_Title": "My Test Event",
            "Start_DateTime": "2025-06-24T14:00:00Z",
            "End_DateTime": "2025-06-24T16:00:00Z",
            "Related_To": [
                {
                    "name": "Test Comapny",
                    "id": "4984468000002352127"
                },
                {
                    "name": "John Doe",
                    "id": "4984468000002351107"
                },
                {
                    "name": "Test Deal",
                    "id": "4984468000002352122"
                }
            ],
            "Participants": [
                {
                    "participant": "4984468000002351107",
                    "type": "contact"
                }
            ],
            "Remind_At": [
                {
                    "unit": 1,
                    "period": "hours"
                },
                {
                    "unit": 15,
                    "period": "minutes"
                }
            ]
        }
    ]
}