IvanOriginal post
Rank 2: Process
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"}
Summary
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)