Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions reference/rest/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,23 @@ Content-Type: application/json
{ "status": "active" }
```

:::warning
The merge is **shallow** (top-level only). Preserving "unspecified properties" applies only to top-level attributes.

If the request body includes a nested object, that entire sub-object is **replaced** rather than deep-merged. Any omitted nested properties will be dropped.

**Example:**
* **Existing record:** {"settings": {"theme": "light", "notifications": {"email": true}}}
* **PATCH request body:** {"settings": {"theme": "dark"}}
* **Resulting record:** {"settings": {"theme": "dark"}} (the "notifications" object is lost)

To update a single nested field, you must either:
1. Read-modify-write the parent object.
2. Send the full nested object with the updated values.
Comment on lines +124 to +131

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what's breaking CI: the bare {...} JSON here gets parsed as JSX expressions by MDX (Docusaurus compiles .md through MDX), so the site build fails on this file — the Deploy PR Preview log shows MDX compilation failed for reference/rest/overview.md. Prettier also wants - bullets and blank lines before the lists.

This suggestion fixes both — I verified it passes prettier --check and compiles under MDX:

Suggested change
**Example:**
* **Existing record:** {"settings": {"theme": "light", "notifications": {"email": true}}}
* **PATCH request body:** {"settings": {"theme": "dark"}}
* **Resulting record:** {"settings": {"theme": "dark"}} (the "notifications" object is lost)
To update a single nested field, you must either:
1. Read-modify-write the parent object.
2. Send the full nested object with the updated values.
**Example:**
- **Existing record:** `{"settings": {"theme": "light", "notifications": {"email": true}}}`
- **PATCH request body:** `{"settings": {"theme": "dark"}}`
- **Resulting record:** `{"settings": {"theme": "dark"}}` (the `notifications` object is lost)
To update a single nested field, you must either:
1. Read-modify-write the parent object.
2. Send the full nested object with the updated values.


Note that dot-path keys (e.g., "settings.theme") are stored literally as keys and are not interpreted as paths.
:::

### DELETE

Delete a specific record or all records matching a query.
Expand Down
Loading