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"
                }
            ]
        }
    ]
}

      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ



                                ご検討中の方