Skip to content
Discussion options

You must be logged in to vote

Fixed in 3.3.1 (released 2026-11-07) — please upgrade and retry:

pip install --upgrade office365-rest-python-client

The cause was on our side. The draft-save request behind create_page() (save_draft()
builds a SitePageFieldsData) serialised every member of the type, so a create that set
only a title still carried a CoAuthState with nothing in it — and a farm whose type has
no such property rejects the whole request, which is your error:

version body of the SaveDraft request
≤ 3.3.0 {"Title": "x", "CoAuthState": {}}
≥ 3.3.1 {"Title": "x"}

ClientValue.to_json() now omits a nested value whose members are all unset.
create_page() and create_and_publish_page() both go through that …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vgrem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants