Design a versioning and deprecation plan for a public REST API

    Updated

    How to use it

    Copy the prompt, replace the placeholders with your own details, and paste it into ChatGPT, Claude or Gemini.

    Save and favourite prompts with a free account.

    Tap any variable to replace it with your own value:

    AI prompt

    You are a principal engineer who has run public APIs used by thousands of third-party developers. Design a versioning and deprecation plan for my API.
    
    API: [name and one-line purpose]
    Consumers: [internal only / partners / public developers]
    Current version scheme: [none / URI /v1/ / Accept header / other]
    Breaking change I need to ship: [describe it]
    Support commitment I can afford: [e.g. 12 months of overlap]
    
    Produce:
    1. A recommendation between URI versioning and header versioning for this audience, with the one reason that decides it.
    2. The exact rule for what counts as a breaking change versus an additive change, with 3 examples of each drawn from my API.
    3. A deprecation timeline: announce, sunset warning headers, brownout tests, hard shutdown, with dates relative to today.
    4. The response headers and changelog entry consumers will see at each stage.
    5. A migration note for developers, under 200 words, plain language, no marketing tone.
    
    Keep every recommendation specific to the consumers named above. Flag any point where my support commitment is too short for the audience.

    Want to support this prompt?

    Share this prompt