Hello, 
I have a problem with the restws, I manage to recover data, but when I want to do an update I get an error: 406Not Acceptable : UuidEntityException: Trying to save a Content entity with empty or invalid UUID.
Please, could you tell me what the problem is?

I'm testing on postman: https://xxxx/rest/node/3f48bc63-969c-48e8-89e7-31465cf6fee0
headers
Content-Type application/json
X-CSRF-Token Um1eu5z1bpLofuICDmMwe3wn_W2dwZLgWxTZv9Y32II
Cookie SSESSbd8e26e3be9451c813c3319a73f368b2
Body
{
    "title": "proof of change of title"
}

Comments

mitpatoliya’s picture

This seems to be an issue on client-side. So, check your request again or get a sample request from the internet and see what you are missing to pass.

ireferpesa’s picture

https://www.drupal.org/node/2424977

In the documentation of the plugin you put this example:

and this is my proof

put

https://xxx.com/rest/node/2504.json

{"title":"prueba de cambio de titulo"}

error 406 Not Acceptable : UuidEntityException: Trying to save a Contenido entity with empty or invalid UUID

Only local images are allowed.

dipali.goel25’s picture

check with some sample code and pass right parameters

This is generic usage page for REST drupal

https://www.drupal.org/docs/8/core/modules/rest/1-getting-started-rest-configuration-rest-request-fundamentals