curl --request PATCH \
--url https://qwoty.app/api/product-parents/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"recurrence_type": "<string>",
"name": "<string>",
"description": "<string>",
"is_active": true,
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
'{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Product Parent Name",
"api_name": "updated_product_parent_name",
"description": "Updated description",
"is_active": true,
"recurrence_type": "one_off",
"id_crm": "crm_123",
"id_erp": "erp_456",
"id_accounting": "acc_789",
"created_at": "2024-12-21T10:30:00Z",
"updated_at": "2024-12-21T14:45:00Z"
}
}
Update an existing product parent
curl --request PATCH \
--url https://qwoty.app/api/product-parents/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"recurrence_type": "<string>",
"name": "<string>",
"description": "<string>",
"is_active": true,
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
'{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Product Parent Name",
"api_name": "updated_product_parent_name",
"description": "Updated description",
"is_active": true,
"recurrence_type": "one_off",
"id_crm": "crm_123",
"id_erp": "erp_456",
"id_accounting": "acc_789",
"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_tokenone_off or recurring)reference is not part of the product parent payload for PATCH (it is stored on the default variant). Sending reference in the body results in a validation error.
curl -X PATCH https://qwoty.app/api/product-parents/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",
"name": "Updated Product Parent Name",
"api_name": "updated_product_parent_name",
"description": "Updated description",
"is_active": true,
"recurrence_type": "one_off",
"id_crm": "crm_123",
"id_erp": "erp_456",
"id_accounting": "acc_789",
"created_at": "2024-12-21T10:30:00Z",
"updated_at": "2024-12-21T14:45:00Z"
}
}
{
"success": false,
"error": "Product parent not found"
}
Was this page helpful?