Roll out a breaking API field change without stranding clients
Do not assume a public API server and every client can switch at once. For a request-field rename from customername to displayname, first deploy a server that accepts both, then migrate clients, observe old-field use, and retire the old contract only after support criteria are met. This field example is illustrative.
Do not assume a public API server and every client can switch at once. For a request-field rename from customer_name to display_name, first deploy a server that accepts both, then migrate clients, observe old-field use, and retire the old contract only after support criteria are met. This field example is illustrative.
Rollout sequence
Expand: make the new field optional while continuing to accept the old one. If both arrive, define the rule; one safe choice is accept equal values and return 400 for conflicting values. Migrate: update clients after the compatible server is live. Count old-field presence without logging request bodies or personal data; no observed usage is not proof that no client remains. Contract: remove the old field only after the announced window, support commitments, and important-client checks are satisfied. Otherwise extend support or keep the old API version. Prepare a rollback that restores old-field acceptance. Google recommends a reasonable, communicated transition for its APIs; that is guidance, not a universal deadline.
Sources
[Source 1](https://google.aip.dev/180)
[Source 2](https://google.aip.dev/185)
[Source 3](https://learn.microsoft.com/en-us/azure/architecture/best-practices/api-implementation)