APIs & Integrations

ErwinHolygrow
メンバー

API V3 schedule publish "User does not have permissions to publish the blog with id"

Hello, 

 

I'm having trouble automating publishing for our blog posts, creating and updating does not give errors, and hubspot docs say that for publishing the content scope is required, which is the same as creating / updating.

 

The error I'm getting is:
body:
{ correlationId: '',
errorTokens: { action: [Array], contentId: [Array], contentType: [Array] },
errorType: 'CONTENT_SCOPE_RESTRICTED',
message: 'User does not have permission to publish the blog post with id 000000000000.',
status: 'error' }

 

Can anyone help me regarding this issue?

 

Thanks in advance,

Erwin

 

 

2件の返信
NTest
参加者

API V3 schedule publish "User does not have permissions to publish the blog with id"

I'm getting the same error when I execute the endpoint via HubSpot's own "Test call" functionality.
In desperation, I selected all available scopes. But still the error persists. (Even though the "Content" scope is and was selected)

HTTP 400

{
    "correlationId": "[redacted]",
    "errorTokens":
    {
        "action": ["publish"],
        "contentId": ["[redacted]"],
        "contentType": ["blog post"]
    },
    "errorType": "CONTENT_SCOPE_RESTRICTED",
    "message": "User does not have permission to publish the blog post with id [redacted].",
    "status": "error"
}


When I execute the endpoint via Postman, I get the following.

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>Error 405 Method Not Allowed</title>
</head>
<body>
    <h2>HTTP ERROR 405</h2>
    <p>Reason:
        <pre>    Method Not Allowed</pre>
    </p>
</body>
</html>

Input set as following.
Rest Api URL
https://api.hubapi.com/cms/v3/blogs/posts/schedule
Body
{
    "id": "[redacted]",
    "publishDate": "2022-12-01T14:17:00.000Z"
}
Header
Authorization = Bearer pat-eu1-[redacted]
0 いいね!
ErwinHolygrow
メンバー

API V3 schedule publish "User does not have permissions to publish the blog with id"

I've tried using the other scopes as well to no avail, it'd be great if Hubspot acknowledges this issue and works on a fix or something. Our system synchronises with an external database to set up multiple blogs and having to publish them ourselves would take up a lot of time