I am building an app integration that will make use of a new Custom Object Schema for portals that install and use the app. From the documentation it seems I should be able to create custom object schemas with OAuth credentials. I have the necessary scopes included for the integration. Using the same object schema I also am able to add this new custom object definition when using an API Key, but not with OAuth. Using OAuth I get this message:
'The scope needed for this API call isn\'t available for public use. If you have questions, contact support or post in our developer forum.'
This message seems to imply that you cannot create a Custom Object Schema from an app with OAuth, however the documentation here https://developers.hubspot.com/docs/api/crm/crm-custom-objects shows OAuth being supported and requiring the crm.objects.custom.write scope (which I have that scope with the integration).
Is there something I am missing here? I was under the impression we would be able to create custom object schemas to work with our apps.
I have reached out to another Hubspot team member and got my answer. At this time the creation of custom object schema from an app integration is not supported.
I have reached out to another Hubspot team member and got my answer. At this time the creation of custom object schema from an app integration is not supported.
Hi @zach_threadint So if I create an app (not to be included in the marketplace) from the developer account, where I have to create custom objects, do I have to make a request?
If you're intending to use Public App authentication (whether the app be listed or unlisted) across multiple HubSpot portals/accounts, I'd recommend making the request.
I hope this proves useful. Please let me know if you have any follow-up questions.
All the best,
Zach
--
Zach Klein HubSpot Integrations & App Developer Meanjin / Brisbane, Australia