I’m encountering an issue with a Custom Schema update while using the HubSpot PHP SDK (v10). I’ve been successfully using this functionality for years, but today it suddenly stopped working, and I’m now receiving a 404 error related to an unrecognised scope.
{ "status": "error", "message": "cobject-edit-all-1 is not a valid scope" }
At random intervals, I’ve also seen a similar 404 error with the following message:
{ "status": "error", "message": "cobject-edit-team-owned-1 is not a valid scope" }
I’m struggling to identify what these scopes (cobject-edit-all-1 and cobject-edit-team-owned-1) are or how to resolve the issue. I’ve reviewed the available scopes in HubSpot’s documentation but haven’t found anything that matches.
Here are the scopes currently applied:
crm.schemas.custom.read
crm.objects.custom.read
crm.objects.custom.write
crm.schemas.custom.write
Has anyone encountered this issue before or can shed light on what these error messages mean? Any guidance on how to resolve this would be greatly appreciated!
Thanks for sharing the additional information. I've been able to replicate the issue you're experiencing and agree there seems to be an issue with this endpoint.
I've tried multiple different approaches, but it seems even the simplest call to update an existing custom object's schema is resulting in an error similar to that described by @Graham-OUB. Thanks 🙌
All the best,
Zach
--
Zach Klein HubSpot Integrations & App Developer Meanjin / Brisbane, Australia