
I have issue with PATCH request (using the native http library for esp32.) Going trought postman I get the same error..
I constantly get: {"message":"The document payload is missing.","code":400,"type":"document_missing_payload","version":"0.10.51"}
TL;DR
Issue: The user is facing an issue with a PATCH request using the native http library for esp32. They are getting an error message saying "The document payload is missing."
Solution: The issue was that the payload should have the data inside a 'data' object. The user should update their code to include the data object in the payload, as shown in the example provided:
```c++
String payload "{\"data\": {\"state\":\""+ stateValue +"\"} }"
```
Reference: [API Documentation](https://appwrite.io/docs/client/databases?sdk=rest-default#databasesUpdateDocument)
The payload should have the data inside a data
object, something like this:
TypeScript
String payload "{\"data\": {\"state\":\""+ stateValue +"\"} }"
https://appwrite.io/docs/client/databases?sdk=rest-default#databasesUpdateDocument

Thank you again Binyamin!

that was the issue 🤦♂️

[SOLVED] Raw use of document update API
Recommended threads
- My collection is not updating after csv ...
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attributes Problem - Cloud
I am not able to see the attribute columns and their context on cloud. Can you help?
