Getting error while creating EventDefinition

Hello,
I am getting an error while trying to create an `EventDefinition` using C# API. I have forked from `https://github.com/boomandbucket/HubSpot.NET` and customized it to work with CRUD methods for EventDefition. I am getting an error when trying to create an `EventDefinition`.
The error I am getting is

HubSpot.NET.Core.HubSpotException : Error from HubSpot, Response = {"status":"error","message":"Invalid input JSON on line 1, column 143. Some required fields were not set: [label]","correlationId":"4e24f2e8-7d6a-4dee-93e1-cd75cd67679f","category":"VALIDATION_ERROR"}

The issue is not evident from the error message. This is the json generated.

{"labels":{"singular":"test_event1","plural":"Test Events"},"name":"testevent12345","description":"test description","primaryObject":"CONTACT"}

Any idea what could be wrong here?

Hey, @MAttal :waving_hand: Thanks for your question. I am not a C# expert by any means. The error message is definitely complaining about your labels. One thing that stands out to me is your use of nested labels.

If we take a step back from the 3rd party repo you linked, can you create a custom event definition either from the on-page dev doc C# example or using Postman?

Thanks for the additional information! — Jaycee