CMS Development

Korbginski
Participant | Diamond Partner
Participant | Diamond Partner

Creating language variants of blog posts via API

SOLVE

Hi!

I'm trying to create a language variant of a blog post. The original post is in german, and I'm trying to add an english variant. Sending this payload:

{
  "contentGroupId": "3371543533",
  "name": "Test",
  "translatedFromId": "36560594743",
  "language": "en"
}

 

Gives me this error:

 

{
  "correlationId": "8fa32c03-39b5-49e0-8774-2b3b5a1f4712",
  "errorTokens": {
    "cloneLanguage": [
      "de"
    ],
    "masterId": [
      "36560594743"
    ]
  },
  "errorType": "MASTER_CLONE_SAME_LANG",
  "message": "Master with id: 36560594743 has same language as variation: de",
  "status": "error"
}
 
Why is that? Sounds like the API thinks I'm trying to create another german variant.
0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Creating language variants of blog posts via API

SOLVE

@Korbginski , thanks for that additional info.  Just wanted to verify.  At this time you cannot create a lang variant via the API. 

Here is a similar thread that might be worth reviewing.

View solution in original post

3 Replies 3
Korbginski
Participant | Diamond Partner
Participant | Diamond Partner

Creating language variants of blog posts via API

SOLVE

Hi Dennis,

 

I'm sending a POST request to https://api.hubapi.com/cms/v3/blogs/posts?hapikey=...

0 Upvotes
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Creating language variants of blog posts via API

SOLVE

@Korbginski , thanks for that additional info.  Just wanted to verify.  At this time you cannot create a lang variant via the API. 

Here is a similar thread that might be worth reviewing.

dennisedson
HubSpot Product Team
HubSpot Product Team

Creating language variants of blog posts via API

SOLVE

Hey @Korbginski ,

What request url are you using here?

0 Upvotes