Creating language variants of blog posts via API

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.

Hey @Korbginski ,

What request url are you using here?

Hi Dennis,

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

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