# Issue creating custom object in dev portal

**URL:** <https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [August 31, 2021, 11:30am UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154 "2021-08-31T11:30:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![YBarOr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ybaror/32/74736_2.png) [@YBarOr](https://community.hubspot.com/u/YBarOr)\
**Post date:** [August 31, 2021, 11:30am UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/1 "2021-08-31T11:30:48Z")

</div>

Hey, I’m trying to create a custom object via API in a dev portal we’ve created so we can experiment a little, we already created this object in our active production environmnet. We get the following (this is the truncated version) error:

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”: “6d3547a3-a2ab-407c-91b3-309b9695b855”,

“category”: “MISSING\_SCOPES”

What gives?

---

<div class="post-metadata">

**Author:** ![JBeatty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbeatty/32/52252_2.png) [@JBeatty](https://community.hubspot.com/u/JBeatty)\
**Post date:** [August 31, 2021, 2:27pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/2 "2021-08-31T14:27:34Z")

</div>

Hi @YBarOr,

Off the top of my head I have not seen this error before. Could you share the request that you are making that gives this error?

---

<div class="post-metadata">

**Author:** ![YBarOr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ybaror/32/74736_2.png) [@YBarOr](https://community.hubspot.com/u/YBarOr)\
**Post date:** [August 31, 2021, 2:30pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/3 "2021-08-31T14:30:00Z")

</div>

Yup, trying to set up a custom object in our test environment:

{

“name”: “customer\_record”,

“labels”: {

“singular”: “Customer Record”,

“plural”: “Customer Records”

},

“primaryDisplayProperty”: “client\_name”,

“requiredProperties”: [

“client\_name”

],

“properties”: [

{

“name”: “client\_name”,

“label”: “Client name”,

“type”: “string”,

“fieldType”: “text”

}

],

“associatedObjects”: [

“CONTACT”,

“COMPANY”,

“DEAL”

]

}

---

<div class="post-metadata">

**Author:** ![JBeatty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbeatty/32/52252_2.png) [@JBeatty](https://community.hubspot.com/u/JBeatty)\
**Post date:** [August 31, 2021, 2:31pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/4 "2021-08-31T14:31:58Z")

</div>

Could you share the URL as well?

---

<div class="post-metadata">

**Author:** ![YBarOr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ybaror/32/74736_2.png) [@YBarOr](https://community.hubspot.com/u/YBarOr)\
**Post date:** [August 31, 2021, 2:35pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/5 "2021-08-31T14:35:06Z")

</div>

[https://api.hubapi.com/crm/v3/schemas?hapikey=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*](https://api.hubapi.com/crm/v3/schemas?hapikey= ********************* ) (not putting an API key here, sorry)

---

<div class="post-metadata">

**Author:** ![JBeatty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbeatty/32/52252_2.png) [@JBeatty](https://community.hubspot.com/u/JBeatty)\
**Post date:** [August 31, 2021, 2:49pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/6 "2021-08-31T14:49:44Z")

</div>

@YBarOr ,

I loked into this endpoint, and it looks like there is an issue on HubSpots side currently, I coppied the exact requests from the [documentation](https://developers.hubspot.com/docs/api/crm/crm-custom-objects), but I recieved the same error. I can only assume that the issue is with HubSpot here. I’ll go ahead and ping some people from HubSpot, to get some internal eyes on this. @dennisedson @sharonlicari

---

<div class="post-metadata">

**Author:** ![YBarOr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ybaror/32/74736_2.png) [@YBarOr](https://community.hubspot.com/u/YBarOr)\
**Post date:** [August 31, 2021, 2:51pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/7 "2021-08-31T14:51:44Z")

</div>

Thanks a lot, I’m dying to hear what they think of this.

Cheers!

---

<div class="post-metadata">

**Author:** ![Willson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willson/32/84663_2.png) [@Willson](https://community.hubspot.com/u/Willson)\
**Post date:** [September 8, 2021, 9:52am UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/8 "2021-09-08T09:52:25Z")

</div>

Hey @YBarOr , @JBeatty ,

Chiming in here a little late but in testing this call out on my end, I get no error.

Do we know if this was reported to Support last week or could you confirm if you’re still encountering this same error?

Thanks

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 8, 2021, 4:25pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/9 "2021-09-08T16:25:03Z")

</div>

@YBarOr , @JBeatty

Apologies for delayed response. Just getting back from vacation.

Like @Willson , I am unable to reproduce in a test portal. I used the code above for my test (see screengrab).

@YBarOr , could you send me your portal id that you are working with?

@JBeatty , if you are getting the same error, could you also send your portal id?

---

<div class="post-metadata">

**Author:** ![JBeatty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbeatty/32/52252_2.png) [@JBeatty](https://community.hubspot.com/u/JBeatty)\
**Post date:** [September 9, 2021, 2:17pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/10 "2021-09-09T14:17:37Z")

</div>

After doing some further testing in a few different portals it seems, that it is failing with that error when the portal does not have an enterprise subscrption. I didn’t realize last week, becuase the test portal that I tested it in had just expired. Doing it in a new test portal with enterprsise scope allievated the issue. @YBarOr, can you confrim that you do have an enterprise subscription on the portal? And, @dennisedson, I do not asee a screengrab in your post.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 9, 2021, 5:29pm UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/11 "2021-09-09T17:29:54Z")

</div>

Well that was silly of me…

 ![Customer_Records.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/2/e232fab0dfc3ddeda6410439287b47203724feea.png)

---

<div class="post-metadata">

**Author:** ![YBarOr](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ybaror/32/74736_2.png) [@YBarOr](https://community.hubspot.com/u/YBarOr)\
**Post date:** [October 12, 2021, 11:02am UTC](https://community.hubspot.com/t/issue-creating-custom-object-in-dev-portal/43154/12 "2021-10-12T11:02:10Z")

</div>

The issue was resolved by re-enabling the “trial” for the sandbox portal.

So to re-iterate - make sure the test portal is opened from an enterprise dev account, and that the 90 day trial is re-enabled. Custom objects can now be freely created.
