A deprecation policy specifies how long an old API version remains available and when it will stop working. Declare the timeline before release and communicate it to users. section 24.3 section 24.3.2
Choose the policy by balancing compatibility against operational complexity:
- Keeping versions indefinitely maximizes stability but can require maintaining every historical version. section 24.3 section 24.3.3
- Removing versions after a declared interval limits active-version overhead but forces users to update before the deadline. section 24.4.1 section 24.3.2
- A practical middle ground keeps a reasonable number of versions while matching users’ stability requirements and the provider’s management capacity. section 24.4.1
A two-month release cycle
With monthly releases and a two-month deprecation policy, version 1 can be previewed in January, become current in February, become deprecated in March, and be deleted in May. Version 2 follows the same progression while newer versions move through preview and current states. section 24.3.2
Table 24.1 Overview of different version states (view table figure)
Use the version-state table to distinguish preview, current, deprecated, and deleted versions, including the changes permitted in each state. section 24.3.2
