cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PATCH MultiLanguageTranslations

john_slaats
Explorer
0 Likes
611

Hi,

I need to update translations in SB1 with the service layer
But the parameter LanguageCodeOfUserLanguage is missing.

The API Reference says:
PATCH https://localhost:50000/b1s/v1/MultiLanguageTranslations(123)
{
"TranslationsInUserLanguages": [{
"Translationscontent": "Description"
}]}

But this changes the first translation. (For me this is the German one)
But what if I want to change the second one?
This is not working:
{
"TranslationsInUserLanguages":[{
"LanguageCodeOfUserLanguage":"16",
"Translationscontent":"PU LEREN BRILLENKOKERX"}]}

Regards John

View Entire Topic
Stef5
Explorer
0 Likes

I tested it in In FP2308. It is working with the following. 

PATCH https://localhost:50000/b1s/v1/MultiLanguageTranslations(123)

{
    "TranslationsInUserLanguages": [
        {
            "LanguageCodeOfUserLanguage": "8",
            "Translationscontent": "Test language 1"
        },
                {
            "LanguageCodeOfUserLanguage": "9",
            "Translationscontent": "Test language 2"
        }
    ]
}