curl --request PATCH \
--url https://qwoty.app/api/products/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"description_inherit_from_product": true,
"primary_image_inherit_from_product": true,
"reference": "<string>",
"is_active": true,
"category_ids": [
{}
],
"inventory[sku]": "<string>",
"settings[unit_per_pack]": 123,
"accounting[ledger_account]": "<string>",
"identifiers[crm]": "<string>",
"identifiers[erp]": "<string>",
"identifiers[accounting]": "<string>",
"shipping[weight]": 123,
"shipping[weight_unit]": "<string>",
"shipping[height]": 123,
"shipping[length]": 123,
"shipping[width]": 123,
"shipping[length_unit]": "<string>",
"shipping[country_of_origin]": "<string>",
"shipping[harmonized_system_code]": "<string>",
"primary_image_id": "<string>"
}
'{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"product_parent_id": "660e8400-e29b-41d4-a716-446655440001",
"workspace_id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Updated Product Name",
"api_name": "updated_product_name",
"reference": "PROD-001",
"description": "Updated description",
"description_inherit_from_product": true,
"primary_image_inherit_from_product": true,
"is_active": false,
"is_default": true,
"catalog_ids": ["770e8400-e29b-41d4-a716-446655440002"],
"category_ids": [],
"settings": {
"unit_per_pack": 1,
"product_type": "physical",
"language_id": null,
"unit_of_measure": null,
"recurrence_type": "one_off"
},
"shipping": {
"weight": 2.8,
"weight_unit": "kg",
"length": 30,
"width": 20,
"height": 10,
"length_unit": "cm",
"country_of_origin": "FR",
"harmonized_system_code": "8471.30"
},
"inventory": {
"sku": "WID-PRE-001"
},
"identifiers": {
"crm": "crm_123",
"accounting": "acc_789",
"erp": "erp_456"
},
"accounting": {
"ledger_account": "4010"
},
"primary_image_id": null,
"parent_primary_image_id": null,
"options": [],
"created_at": "2024-12-21T10:30:00Z",
"updated_at": "2024-12-21T14:45:00Z"
}
}
Update an existing product
curl --request PATCH \
--url https://qwoty.app/api/products/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"description_inherit_from_product": true,
"primary_image_inherit_from_product": true,
"reference": "<string>",
"is_active": true,
"category_ids": [
{}
],
"inventory[sku]": "<string>",
"settings[unit_per_pack]": 123,
"accounting[ledger_account]": "<string>",
"identifiers[crm]": "<string>",
"identifiers[erp]": "<string>",
"identifiers[accounting]": "<string>",
"shipping[weight]": 123,
"shipping[weight_unit]": "<string>",
"shipping[height]": 123,
"shipping[length]": 123,
"shipping[width]": 123,
"shipping[length_unit]": "<string>",
"shipping[country_of_origin]": "<string>",
"shipping[harmonized_system_code]": "<string>",
"primary_image_id": "<string>"
}
'{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"product_parent_id": "660e8400-e29b-41d4-a716-446655440001",
"workspace_id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Updated Product Name",
"api_name": "updated_product_name",
"reference": "PROD-001",
"description": "Updated description",
"description_inherit_from_product": true,
"primary_image_inherit_from_product": true,
"is_active": false,
"is_default": true,
"catalog_ids": ["770e8400-e29b-41d4-a716-446655440002"],
"category_ids": [],
"settings": {
"unit_per_pack": 1,
"product_type": "physical",
"language_id": null,
"unit_of_measure": null,
"recurrence_type": "one_off"
},
"shipping": {
"weight": 2.8,
"weight_unit": "kg",
"length": 30,
"width": 20,
"height": 10,
"length_unit": "cm",
"country_of_origin": "FR",
"harmonized_system_code": "8471.30"
},
"inventory": {
"sku": "WID-PRE-001"
},
"identifiers": {
"crm": "crm_123",
"accounting": "acc_789",
"erp": "erp_456"
},
"accounting": {
"ledger_account": "4010"
},
"primary_image_id": null,
"parent_primary_image_id": null,
"options": [],
"created_at": "2024-12-21T10:30:00Z",
"updated_at": "2024-12-21T14:45:00Z"
}
}
Documentation Index
Fetch the complete documentation index at: https://docs.qwoty.io/llms.txt
Use this file to discover all available pages before exploring further.
Bearer qwoty_your_tokennull to
remove the primary image.api_name are creation-only: they may appear on the resource but cannot be sent in a PATCH body (the API returns 400 with a validation detail if they are).
curl -X PATCH https://qwoty.app/api/products/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer qwoty_your_token" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Product Name",
"description": "Updated description",
"is_active": false
}'
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"product_parent_id": "660e8400-e29b-41d4-a716-446655440001",
"workspace_id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Updated Product Name",
"api_name": "updated_product_name",
"reference": "PROD-001",
"description": "Updated description",
"description_inherit_from_product": true,
"primary_image_inherit_from_product": true,
"is_active": false,
"is_default": true,
"catalog_ids": ["770e8400-e29b-41d4-a716-446655440002"],
"category_ids": [],
"settings": {
"unit_per_pack": 1,
"product_type": "physical",
"language_id": null,
"unit_of_measure": null,
"recurrence_type": "one_off"
},
"shipping": {
"weight": 2.8,
"weight_unit": "kg",
"length": 30,
"width": 20,
"height": 10,
"length_unit": "cm",
"country_of_origin": "FR",
"harmonized_system_code": "8471.30"
},
"inventory": {
"sku": "WID-PRE-001"
},
"identifiers": {
"crm": "crm_123",
"accounting": "acc_789",
"erp": "erp_456"
},
"accounting": {
"ledger_account": "4010"
},
"primary_image_id": null,
"parent_primary_image_id": null,
"options": [],
"created_at": "2024-12-21T10:30:00Z",
"updated_at": "2024-12-21T14:45:00Z"
}
}
{
"success": false,
"error": "Product not found"
}
Was this page helpful?