PATCH /v1/blocks/{} → endpoint removal
Deprecated, no date
The body parameter archived on PATCH /v1/blocks/{} has been deprecated without a shutdown date. The provider announced this change on April 1, 2024. Requests using this parameter will eventually fail once the removal takes effect.
Calls it hits
PATCH /v1/blocks/{}body parameter archived
What to use instead of these calls
Send in_trash instead of archived when trashing or restoring a block.
In Notion API's words
The archived field was deprecated in April 2024.
Facts
- API
- Notion API
api.notion.com - Kind
- Endpoint removal
- Announced
- April 1, 2024
- Takes effect
- No date given yet
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against Notion API's own pages
Questions
When does this change take effect?
Notion API deprecated PATCH /v1/blocks/{}, body parameter archived without giving a shutdown date yet.
Do these calls still work?
Yes, they still work: Notion API has not given a shutdown date yet.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from Notion API 1
-
No date
PATCH /v1/pages/{}Endpoint removal Deprecated, no date
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix.