When you update a document you have to provide only the content, the subdocs and the latest version.
The version is required in order to avoid conflicts if multiple updates happen at the same time.
{
"data": {
"version": 12,
"content": {
"title": "A title",
"price": 12.45,
"isDiscount": true
},
"subdocs": {
"product_variants": [
{
"schema": "variants",
"content": {}
}
],
"vendor": {
"schema": "vendors",
"content": {
"categories": [
{
"schema": "categories",
"id": "5067d26c-e547-4689-9abe-13895943c34a"
}
]
}
}
}
}
}