Write data by sendingDocumentation Index
Fetch the complete documentation index at: https://docs.larksh.com/llms.txt
Use this file to discover all available pages before exploring further.
PUT, POST, PATCH, or DELETE requests. The request body is JSON.
Set (PUT)
Replace the data at a path completely. Any existing data at that path is overwritten.PUT to a path that doesn’t exist creates it. PUT to a path that does exist replaces it entirely. Missing fields are deleted, not preserved.
Push (POST)
Add a new child with an auto-generated key. This is the REST equivalent ofpush() in the SDKs.
name field contains the generated key. Push IDs are chronologically sortable, so later posts sort after earlier ones.
Update (PATCH)
Merge data into an existing path. Only the specified keys are modified; everything else is preserved.score and lastSeen without touching name or online.
Multi-path updates
Update multiple locations atomically by using paths as keys in yourPATCH body at a higher level:
Remove (DELETE)
Delete data at a path.null on success. Deleting a non-existent path succeeds silently.
Server values
Use{".sv": "timestamp"} to write the server’s current timestamp:
{".sv": "timestamp"} with the actual Unix timestamp in milliseconds.
Silent writes
If you don’t need the response body (saving bandwidth), addprint=silent:
204 No Content instead of echoing the written data.
Error responses
When a write fails, you get an error object:| Status code | Meaning |
|---|---|
200 | Write succeeded |
204 | Write succeeded (with print=silent) |
400 | Invalid JSON or bad request |
403 | Security rules denied the write |
401 | Authentication required |

