🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Discussion on setting the Sanity API version for stability

5 replies
Last updated: Jun 15, 2023
This message was deleted.
Jun 14, 2023, 10:25 AM
user Q
Please help us out by threading your posts.
Jun 14, 2023, 1:57 PM
I have figure it out set the value of the Sanity API version to 1 instead of the current date. When using version 1 app won’t work correctly. Is there like a stable version instead of setting the current date?
Jun 14, 2023, 1:58 PM
A detailed perspective on the versioning system can be found here: https://www.sanity.io/docs/api-versioning
Speaking only for myself, my advice would be to accommodate the more advanced/recent API within your project if possible rather than pulling back the version to match, if the goal is stability.
Jun 14, 2023, 9:16 PM
Yes thanks. I have found that but I don't see how to set a stable version only option to set the date.
Jun 15, 2023, 11:22 AM
The dates are stable versions. We use versioning inspired by Stripe, as mentioned in the docs Vincent linked to. Setting
will continue to use the API as it existed on that date, even if there are breaking changes on 2023-06-16.
Jun 15, 2023, 3:42 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?