Closed jaolave closed 2 years ago
Hi @jaolave
It's a fault in the documentation (see also: https://github.com/akeneo/api-php-client/issues/175)
You need to do it as follows:
$client->getAttributeOptionApi()->upsertList('a_simple_select',
[
[
'code' => 'black',
'sort_order' => 2,
'labels' => [
'en_US' => 'Black',
'fr_FR' => 'Noir',
]
],
[
'code' => 'white',
'sort_order' => 3,
'labels' => [
'en_US' => 'White',
'fr_FR' => 'Blanc',
]
]
]
);
Hello,
Since this EE package is being deprecated, we'll keep the discussion to the appropriate repository and issue https://github.com/akeneo/api-php-client/issues/175.
Regards,
Akeneo development team
Hi,
In the documentation it says that the method getAttributeOptionApi()->upsertList(), only has one argument or parameter which is an array, but when executing it an error is generated since it is waiting for two arguments.
What is the correct way to invoke this method?
Example:
Error: