Languages & Translations


Language & referenceUid

If you want to create a new record, then a language code must be added. This language code is created in the contentDock® Management System in the "Account -> Languages" area and must be specified in the "language" field in the JSON structure.

Example JSON structure for inserting a record with language code and referenceUid
{
    "command": "insert",
    "language": "EN",
    "data": {
        "referenceUid": "102",
        "name": "My product name",
        "shortDescription": "My product description text",
        "height": "76,65",
        "width": "37,63",
        "category": "76",
        "packshotColor": "#f457b2",
        "packshot": {
            "file": "http://www.my-company-domain.com/my-product-packshot.jpg", 
            "tags": ["tag1", "tag2"]
        }  
    }
} 

Language & parentReferenceUid

If you want to add a translation to an existing record, you must specify the "parentReferenceUid" field. This reference ID points to the field "referenceUid", which has to sent to contentDock at the time of inserting the master record.

Example JSON structure for inserting a record with language code and parentReferenceUid
{
    "command": "insert",
    "language": "DE",
    "data": {
        "referenceUid": "102",
        "parentReferenceUid": "101",
        "name": "My product name",
        "shortDescription": "My product description text",
        "height": "76,65",
        "width": "37,63",
        "category": "76",
        "packshotColor": "#f457b2",
        "packshot": {
            "file": "http://www.my-company-domain.com/my-product-packshot.jpg", 
            "tags": ["tag1", "tag2"]
        }  
    }
}  

More information


Feedback or Questions

We are always happy to help you with questions about the code or other questions.

Was this page helpful? Yes No

Topics on this page