When i send a PATCH request to my site to /webform_rest/{webform_id}/submission/{sid}?_format=json with the body
{
"data":{
"sincronizado":1
}
}
or
{
"sincronizado":1
}
from postman, I receive a 500 error.
The site log displays the next error:
RuntimeException: Callable "Drupal\webform_rest\Plugin\rest\resource\WebformSubmissionResource::patch" requires a value for the "$webform_data" argument. en Drupal\Component\Utility\ArgumentsResolver->handleUnresolvedArgument() (line 142 of /usr/home/example.com/web/core/lib/Drupal/Component/Utility/ArgumentsResolver.php).
Am I making a bad request? What is the $webform_data
argument? My webform has a field "sincronizado", of type value.
I'm using Drupal 9. REST UI 8.x-1.18. RESTful Web Services 9.0.2 Webform 6.0.0-alpha12 Webform Rest 4.0.0-beta1
Same problem sending sid parameter with Webform rest version 8.x-2.0-beta3.
My request from postman, in curl code is
curl --location --request PATCH 'http://example.com/webform_rest/webform-id-example/submission/36?_format=json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic (admin user and password in base 64)' \
--data-raw '{
"sincronizado":"1"
}'