APIs & Integrations

YBarOr
Participant

Issue creating custom object in dev portal

SOLVE

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?
0 Upvotes
4 Accepted solutions
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Issue creating custom object in dev portal

SOLVE

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?

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

View solution in original post

JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Issue creating custom object in dev portal

SOLVE

Could you share the URL as well?

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

View solution in original post

dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Issue creating custom object in dev portal

SOLVE

Well that was silly of me....

Customer_Records.png

View solution in original post

YBarOr
Solution
Participant

Issue creating custom object in dev portal

SOLVE

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.

View solution in original post

11 Replies 11
YBarOr
Solution
Participant

Issue creating custom object in dev portal

SOLVE

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.

dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Issue creating custom object in dev portal

SOLVE

Well that was silly of me....

Customer_Records.png

JBeatty
Guide | Diamond Partner
Guide | Diamond Partner

Issue creating custom object in dev portal

SOLVE

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.

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

dennisedson
HubSpot Product Team
HubSpot Product Team

Issue creating custom object in dev portal

SOLVE

@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?

 

 

0 Upvotes
Willson
HubSpot Employee
HubSpot Employee

Issue creating custom object in dev portal

SOLVE

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

 

Product Manager @ HubSpot
0 Upvotes
YBarOr
Participant

Issue creating custom object in dev portal

SOLVE

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

 

Cheers!

0 Upvotes
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Issue creating custom object in dev portal

SOLVE

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?

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

YBarOr
Participant

Issue creating custom object in dev portal

SOLVE

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"
  ]
}
0 Upvotes
JBeatty
Solution
Guide | Diamond Partner
Guide | Diamond Partner

Issue creating custom object in dev portal

SOLVE

Could you share the URL as well?

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

YBarOr
Participant

Issue creating custom object in dev portal

SOLVE
0 Upvotes
JBeatty
Guide | Diamond Partner
Guide | Diamond Partner

Issue creating custom object in dev portal

SOLVE

@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, 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 

✔️ Was I able to help answer your question? Help the community by marking it as a solution.

Joshua Beatty
Software Developer with Pearagon

Still have questions? Let's Talk

0 Upvotes