id field in the request body (not by a path segment). Include id and POST to /v2/api/entity/credit_type — the same path as create; supplying id switches the operation from insert to update.status→1, allow_decimal→0, unit/description→null), so always resend every field you want to keep. name is required and must stay unique./credit_type/{id}) does not update — it creates a new record. Always send id in the body.curl --location --globoff 'https://.daftara.com/v2/api/entity/credit_type' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 7,
"name": "Loyalty Points",
"allow_decimal": 1,
"status": 1,
"unit": "point",
"description": "Points earned on purchases"
}'{
"message": "Credit Type updated Successfully",
"id": 7
}