Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ireferpesa on
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
This seems to be an issue on
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.
https://www.drupal.org/node
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
It may not have proper headers attached
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