/v2/api/entity/charge_usage path as create; the record to update is identified by the id in the request body. If id is omitted a new record is created instead.credit_charge_id and credit_usage_id and sets either of them that you omit to null. Because both are non-nullable, omitting one fails with a 400. Always resend credit_charge_id and credit_usage_id on every update. amount is preserved if omitted.{ "message": <localized text>, "id": <id> }.curl --location --globoff 'https://.daftara.com/v2/api/entity/charge_usage' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 7,
"credit_charge_id": 12,
"credit_usage_id": 5,
"amount": 75
}'{
"message": "Updated successfully",
"id": 0
}