API: invalid language parameter
-
I have to create translations for existing products, and to save time I decided to use the API. The site default language is Dutch, and I try to make English translations for over 250 products. When I try to send a translation with
$newData = [ 'description' => $description, 'short_description' => $shortDescription, 'translation_of' => $product->id, 'lang' => 'en', ]; $returnTranslationData = $webshop->createProduct($newData);
it will return the error
Error: Invalid language parameter: “en” [422]
.
If I change it to ‘lang’ => ‘nl’, it will succeed. (but not linked to any existing product)
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘API: invalid language parameter’ is closed to new replies.