User does not have permission to get the resource with id null.

annapurna
Participant

GET /content/api/v2/blogs?limit=250&offset=0

 

Returns 

{
"status":"error",
"message":"User does not have permission to get the resource with id null.",
"errorType":"SCOPE_RESTRICTED",
"errorTokens":{"modelId":["null"],
"action":["get"]},
"correlationId":"7d96ee0e-fa91-4cc0-9720-8a35c79d8ca9"
}

Any idea what causes this error? I tried to find documentation regarding this and it seems there is none. This happens after the user has granted the required scope including content. 

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee

Hey @annapurna,

 

To clarify, are you attempting to request for this GET /content/api/v2/blogs?limit=250&offset=0 endpoint from the Supermetrics app? 

 

If so, it seems that the current scope doesn't contain content. As such, am I missing something here? 

 

If that's not the app in question, could you share with me the following:

1. App ID in question

2. The portal ID in which the app was installed on

0 Upvotes
annapurna
Participant

Hi Wendy,

 

Sent you a pm. I am not sure if it is a good idea to put portal id here.

0 Upvotes
WendyGoh
HubSpot Employee

Hey @annapurna,

 

I understand 🙂 I have also responded back to you via DM. 

0 Upvotes