Skip to content

feat: add update methods to Pages resource#65

Open
Galeforce1 wants to merge 1 commit into
makeplane:mainfrom
Galeforce1:feat/add-page-update-methods
Open

feat: add update methods to Pages resource#65
Galeforce1 wants to merge 1 commit into
makeplane:mainfrom
Galeforce1:feat/add-page-update-methods

Conversation

@Galeforce1

@Galeforce1 Galeforce1 commented Jul 27, 2026

Copy link
Copy Markdown

Overview

Adds update_workspace_page and update_project_page to the Pages resource.

Motivation

The UpdatePage model already exists in plane/models/pages.py, but no
resource method uses it — Pages currently supports list, retrieve,
create, and delete, but not update. This closes that gap, following the
exact pattern already used by Cycles.update(), Projects.update(),
and other resources (self._patch(...) + data.model_dump(exclude_none=True)).

Changes

  • Pages.update_workspace_page(workspace_slug, page_id, data)
  • Pages.update_project_page(workspace_slug, project_id, page_id, data)

No new models, no breaking changes — purely additive.

Summary by CodeRabbit

  • New Features
    • Added support for updating workspace pages.
    • Added support for updating project pages.
    • Page updates now return the refreshed page details.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 221b5b45-bf59-49a2-a0dc-84039a66d3c2

📥 Commits

Reviewing files that changed from the base of the PR and between a789ece and 52793a7.

📒 Files selected for processing (1)
  • plane/api/pages.py

📝 Walkthrough

Walkthrough

The Pages resource now exposes workspace- and project-scoped page update endpoints. Both methods serialize UpdatePage data, issue PATCH requests, and return validated Page models.

Changes

Pages API updates

Layer / File(s) Summary
Page update methods
plane/api/pages.py
Imports UpdatePage and adds workspace- and project-scoped PATCH methods that exclude unset fields and validate responses as Page models.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change by adding update methods to the Pages resource.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant