commerce_agent_knowledge_publish
Arguments
Returns
Errors
Besides the errors any request can return, this operation fails with these codes inextensions.code.
Set which metafields Commerce Agent reads, as the Products tab’s metafield save does: the entries replace the store’s whole set in one transaction, and an empty list turns metafield knowledge off. At most 5, as the Products tab allows, since every product Commerce Agent looks up carries them all; a store that already has more may keep that many. More fail with BAD_USER_INPUT. Two with one display name fail with BAD_USER_INPUT; a definition the store hasn’t defined fails with NOT_FOUND, and nothing is written. It goes live at once, so it needs commerce_agent_knowledge_publish; commerce_agent_knowledge_write alone is refused with INSUFFICIENT_SCOPE.
commerce_agent_knowledge_publish
extensions.code.