Hi
Im currently building a Dll that creates or edits pages in my company's Kentico Site and I having some issues posting Language Versions of the current content pages.
Right now, we have set Spanish(es-ES) as our default culture, when we create a Lenguaje Version of an existing page with Post we need the NodeID of the Spanish page first in order to link them, for example:
URL:
https://(OurSite)/rest/content/currentsite/it-IT/document/(ExistingDocumentAlias)?format=json
Post Data:
{
"NodeClassID": 7791,
"DocumentName": "ExistingDocument",
"NodeID": (existingDocumentNodeId in es-ES)
}
Response: 200 - OK
However when we want to create a contentpage in different cultures (e.g.it-IT and es-US) without creating one in the default culture(es-ES) we get this error:
First We make a new page:
https://(OurSite)/rest/content/currentsite/it-IT/document?format=json
Post Data:
{
"NodeClassID": 7791,
"DocumentName": "NewDocument",
}
Response: 200 - OK
Then we make a new Lenguaje Version for that page:
https://(OurSite)/rest/content/currentsite/it-IT/document/(NewDocument)?format=json
Post Data:
{
"NodeClassID": 7791,
"DocumentName": "NewDocument",
"NodeID": (newDocumentNodeID)
}
Response: 404 - Not Found
Is there any way to creating lenguajes versions of pages without creating the default lenguaje version first?