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

PATCH MultiLanguageTranslations

john_slaats
Explorer
0 Kudos
556

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Stef5
Explorer
0 Kudos

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"
        }
    ]
}
john_slaats
Explorer
0 Kudos

Can someone help me here?