Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there no way to create custom events via this SDK? #490

Open
mikesnare opened this issue Jul 3, 2024 · 3 comments
Open

Is there no way to create custom events via this SDK? #490

mikesnare opened this issue Jul 3, 2024 · 3 comments

Comments

@mikesnare
Copy link

I see that you can send custom events using this SDK, but I don't see any way to create custom event definitions. Am I just missing it?

@Sakib25800
Copy link

You're not missing it, there's no available methods to create it. You'll have to resort to hs.apiRequest({...}). I think since custom events are in beta they're not going to add the methods to the SDK just yet.

If you head over to the docs, it'll show you whether the request can be done via the SDK or not.

@ksvirkou-hubspot
Copy link
Collaborator

Hi @mikesnare
Do you mean Send custom event completion?
hubspotClient.events.send.customEventDataApi.send()

@mikesnare
Copy link
Author

@ksvirkou-hubspot Nope. I mean management APIs for the event definitions themselves. I was able to switch to apiRequest as suggested for now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants