curl -i -X PATCH \
'https://fluid-commerce.redocly.app/_mock/docs/apis/swagger/api/company/v1/products/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "string",
"product": {
"title": "string",
"image_url": "string",
"sku": "string",
"introduction": "string",
"feature_text": "string",
"description": "string",
"status": "string",
"commission": 0,
"public": true,
"metadata": {},
"publish_to_retail_store": true,
"publish_to_rep_store": true,
"publish_to_share_tab": true,
"show_reviews": true,
"application_theme_template_id": 0,
"tax_category_id": 0,
"international_tax_type": "string",
"collection_ids": [
0
],
"tag_ids": [
0
],
"label_id": 0,
"category_id": 0,
"keep_selling": true,
"option_attrs": [
"string"
],
"no_index": true,
"search_engine_optimizer_attributes": {
"id": 0,
"title": "string",
"description": "string",
"image_url": "string",
"image_path": "string",
"block_crawler": true
},
"images_attributes": [
{
"id": 0,
"position": 0,
"image_url": "string",
"_destroy": true
}
],
"product_subscription_plans_attributes": [
{
"id": 0,
"subscription_plan_id": 0,
"default": true,
"_destroy": true
}
],
"variants_attributes": [
{
"id": 0,
"option_attrs": [
"string"
],
"sku": "string",
"is_master": true,
"title": "string",
"_destroy": true,
"track_quantity": true,
"bar_code": "string",
"limit_subscription": true,
"subscription_max_qty": 0,
"customer_limit": 0,
"keep_selling": true,
"images_attributes": [
{
"id": 0,
"position": 0,
"image_url": "string",
"_destroy": true
}
],
"inventory_levels_attributes": [
{
"id": 0,
"warehouse_id": 0,
"available": 0,
"committed": 0,
"on_hand": 0,
"unavailable": 0,
"_destroy": true
}
],
"variant_countries_attributes": [
{
"id": 0,
"active": true,
"country_id": 0,
"price": 0,
"wholesale": 0,
"compare_price": 0,
"cv": 0,
"qv": 0,
"pc_cv": 0,
"pc_qv": 0,
"cost_of_goods_sold": 0,
"shipping": 0,
"tax": 0,
"_destroy": true
}
]
}
],
"bundle": true,
"product_bundles_attributes": [
{
"id": 0,
"bundled_variant_id": 0,
"quantity": 0,
"_destroy": true
}
]
}
}'