cURL
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>", "reference": "<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", "reference": "PROD-001", "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
Bearer qwoty_your_token
one_off
recurring
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": false, "error": "Product parent not found" }
Was this page helpful?