An API migration guide is complete when a caller can move the relevant workflow to the new contract and verify the intended result. Changing the endpoint path in a sample is insufficient if pagination, response fields, permissions, errors, or retry behavior changed too.
Deprecation and removal are different states. RFC 9745 says the act of deprecation does not itself change a resource's behavior. It communicates lifecycle information and can point clients toward further documentation. Do not infer a removal deadline or a safe replacement from the word deprecated alone.
The versioned documentation guide decides which instructions remain available. This acceptance procedure verifies the migration instructions themselves, using a before-and-after contract tied to one caller task.
Write a contract difference record
Name the workflow and the supported starting state. Record old and new operation, service version, authentication and authorization, parameters, response shape, error handling, pagination, rate behavior, side effects, and transition dates where officially established.
Mark unchanged, changed, unsupported, and unknown fields. Do not fill an unknown with a familiar convention from another API. Some transitions require an SDK update or an intermediate step; others do not. The actual provider and product evidence should determine the instruction.
GitHub's API version guidance illustrates the range of breaking changes a version can contain, including removed operations or fields and changed authentication requirements. It recommends reading the relevant changelog, making necessary changes, and testing the updated integration. That provider example is not a universal lifecycle policy for every API.
Work a hypothetical pagination migration
Imagine a fictional read-only collection endpoint moving from numbered pages to opaque cursors. The old response places records in results; the new response places them in items and returns a next cursor. The fixture contains 54 synthetic records and a page capacity of 20. No real API behavior is being claimed.
| Case | Expected result | Failure to detect |
|---|---|---|
| First request | Read items and retain next cursor | Code still reads results |
| Complete traversal | 20, 20, then 14 records; no next cursor | Stops after first page |
| Repeated first page fixture | Duplicate IDs detected in review | Counts repeated records as new |
| Permission failure | Follows documented recovery route | Treats error payload as an empty collection |
The complete traversal yields 54 records. Adding a repeated first page produces 74 observed rows but still only 54 unique fixture identifiers. The guide should help the caller distinguish repeated delivery from new data rather than treating the larger count as success.
Test the guide’s wording against the cases
Follow the published steps in an authorized test environment using the intended starting version. Keep the fixture, expected results, actual observations, guide revision, environment, and reviewer together. Do not claim a test ran if the procedure was only inspected.
For the fictional migration, verify that the example reads items, sends the returned cursor, and terminates under the documented condition. Check empty collections and errors separately. An empty successful result is different from an authorization failure or malformed response.
Add a malformed cursor and a partial-result case to the real provider-specific test plan when those states are possible. Verify the documented failure and recovery behavior rather than inventing it from the fictional example. A guide should not tell readers to restart or retry indefinitely without the actual contract supporting that action.
If a real migration changes write operations, examine its documented duplicate-prevention and retry behavior with the responsible engineer. Do not generalize a read-only example into permission to replay purchases, messages, or mutations. State the actual side-effect boundary.
Use the acceptance brief to make these cases part of the editorial deliverable. A technically fluent paragraph does not establish that the instructions preserve the caller's task.
Keep credentials and lifecycle claims controlled
Use clear placeholders and approved test credentials held outside publication. Review generated request examples and response records for sensitive fields. The documentation integrity review addresses source provenance; credential handling needs its own explicit review as well.
Confirm official deprecation, support, and removal information with the provider or authorized product owner. Include dates and timezones only when verified. If a deadline is unset, say so and identify the maintained source rather than inventing urgency.
Distinguish migration completion from the end of old behavior. A caller may complete the new path while the old endpoint remains available. Conversely, an old endpoint may already be unavailable before a reader finds the guide. The notice and troubleshooting path should reflect the actual supported state.
Do not promise that an HTTP redirect preserves authentication, method behavior, side effects, or response semantics. A technical location change and a contract migration are different questions.
Release with a reversible documentation decision
Have the technical owner approve the difference record and test evidence. Have the documentation owner verify that the final published examples match that approved revision. If an important case remains unresolved, state the limitation or hold the relevant instruction.
Link the guide from the old reference, current reference, and relevant lifecycle notice where appropriate. Keep a stable route for readers who arrive from an old integration error. The reader-oriented linking method helps choose those paths without turning every version into a duplicate article.
Preserve the previous guide and correction history in the controlled record. If the new guide is wrong, the response may be a correction, a qualified notice, or a temporary hold; it should not quietly restore an obsolete endpoint as if the product policy never changed.
Approve the guide when the named workflow passes its documented acceptance cases and the remaining boundaries are clear. That establishes useful migration evidence, not universal compatibility or a guarantee that every caller can complete the transition without further review.
