9 – Drupal 8 REST API – Could not determine entity type bundle: “type” field is missing


I have passed the type as well but still getting the below error.

“message”: “Could not determine entity type bundle: “type” field is missing.”

var settings = {
  "url": "http://localhost/demo/node/123?_format=json",
  "method": "PATCH",
  "timeout": 0,
  "headers": {
    "X-CSRF-Token": "owP-y24QZGfaWM-GexTyHtBDdf9UEezhEc2kRZYqNo",
    "Authorization": "Basic sw36273uhsdjfnjse737huhsjdbu232dsjn",
    "Content-Type": "application/json",
    "Cookie": "SESS8e14218268f75d34a07269fea82f0b8e=7XIY-mbKvu_F_MAe7H4l1fhgdVYFICaSmp2mX6gFNyc"
  },
  "data": JSON.stringify(({"type":({"target_id":"product","target_type":"node_type"}),"title":({"value":"Test Product"})})),
};

$.ajax(settings).done(function (response) {
  console.log(response);
});