Failed to Create Custom object schema through API

I created an app in HubSpot and would like to create custom object schemas. However, I don’t see write permissions in the available scope list. As a result, when I try to create the custom object schema using API endpoint:https://api.hubapi.com/crm/v3/schemas , I receive the following error: 403 Forbidden: [{“status”:“error”,“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.”,“correlationId”:“4e3cc8d9-6872-4ce6-96a9-07bc62a11035”,“links”:{“support”:“https://help.hubspot.com/",“forum”:“https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations”},“category”:"MISSING_SCOPES”}]

@RM80 - is the ‘create’ API you are looking for at https://api.hubapi.com/crm-object-schemas/v3/schemas ?

I see a read and write option in scopes available - but I know this is restricted to certain Enterprise hubs, so perhaps this is the issue you are hitting?

Steve

Yes Steve, I have used these two apis,

https://api.hubapi.com/crm-object-schemas/v3/schemas

https://api.hubapi.com/crm/v3/schemas

to create custom object schema as per this: https://developers.hubspot.com/docs/api/crm/crm-custom-objects?__hstc=15489257.e05d6aa09b757f44a906067e6dea8641.1720506513188.1720506513188.1720506513188.1&__hssc=15489257.1.1720506513188&__hsfp=3199811007#custom-object-example

{

“status”: “error”,

“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.”,

“correlationId”: “341548e7-5166-44d1-a740-f879f8576cb2”,

“links”: {

“support”: “https://help.hubspot.com/”,

“forum”: “https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations

},

“category”: “MISSING_SCOPES”

}