我如何通过更新嵌套值。 API?

How do i update a nested value via. the API?

如何通过更新嵌套值。 API?我想更新我的自定义字段 custom_product_fields_magento_product_id

请求路径:/api/product/f9529c4f40e94fa6ae7439f97090cc9e

请求类型:PATCH

正文:

{
    "translated.customFields.custom_product_fields_magento_product_id" : "123"
}

我哪里错了?我可以轻松更新未嵌套的产品值,例如 "productNumber" : "value"

您可以使用

{
    "customFields": {
        "custom_product_fields_magento_product_id":"123"
    }
}

该值将自动保存到翻译中,其语言在请求中指定header或默认语言。