Commit 52e4f1e
authored
Sync api-endpoints: support templates in Update Page (#631)
## Description
This PR adds support for two new optional parameters in the
`UpdatePageBodyParameters`:
- `erase_content`: boolean to clear all current children of the page
- `template`: either `{ type: "default" }` or `{ type: "template_id";
template_id: IdRequest }` to specify a template to apply onto an
existing page (template content is appended, and properties are merged
the same way as for `pages.create`)
## How was this change tested?
- [ ] Automated test (unit, integration, etc.)
- [x] Manual test (provide reproducible testing steps below)
Automated file sync; no manual code changes in this PR. Relying on
typechecking and existing tests in CI.
## Screenshots
N/A1 parent 5a6ed64 commit 52e4f1e
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3588 | 3588 | | |
3589 | 3589 | | |
3590 | 3590 | | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3591 | 3598 | | |
3592 | 3599 | | |
3593 | 3600 | | |
| |||
3609 | 3616 | | |
3610 | 3617 | | |
3611 | 3618 | | |
| 3619 | + | |
| 3620 | + | |
3612 | 3621 | | |
3613 | 3622 | | |
3614 | 3623 | | |
| |||
0 commit comments