curl --location --request PUT '/budget/' \
--header 'auth-bearer: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"items": [
{}
],
"professional": "60d21b4667d0d8992e610c85",
"specialty": "Dentistry",
"insurance": "60d21b4667d0d8992e610c86",
"insurancePlan": "60d21b4667d0d8992e610c87",
"insuranceIdentification": "123456789",
"paymentInformation": {
"period": "DAY",
"quantity": 12,
"entry": 100,
"parcelValue": 50,
"method": "credit_card"
},
"type": "dental"
}'{
"message": "Budget updated successfully",
"budget": {
"active": true,
"type": "dental",
"budgetNumber": 12345,
"patientData": {
"identificationOnInsurance": "ID123456",
"insurancePlan": "60d21b4667d0d8992e610c85"
},
"patient": "60d21b4667d0d8992e610c86",
"cellPhone": "+1234567890",
"email": "patient@example.com",
"clinic": "60d21b4667d0d8992e610c87",
"insurance": "60d21b4667d0d8992e610c88",
"professional": "60d21b4667d0d8992e610c89",
"specialty": "60d21b4667d0d8992e610c90",
"status": 0,
"items": [
{
"typeModel": "Product",
"quantity": 2,
"totalValue": 500,
"valueUnity": 250,
"item": "60d21b4667d0d8992e610c91",
"event": "60d21b4667d0d8992e610c92",
"type": "product",
"copart": 100,
"transferPercent": 20,
"unit": "unit",
"expenseCode": "EX123",
"tooth": "M1",
"toothFace": [
"F",
"O"
],
"toothRegion": "UR"
}
],
"value": 1000,
"createdBy": "60d21b4667d0d8992e610c93",
"approvedBy": "60d21b4667d0d8992e610c94",
"paymentInformation": {
"period": "DAY",
"quantity": 12,
"entry": 200,
"parcelValue": 100,
"method": "credit card"
}
}
}