← Quiz: API Design: all 15 questions
Quiz: API Design · Question 15 of 15
The mobile app reads a field called "name". The team wants to rename it to "fullname". What is the safe approach?
The mobile app reads a field called "name". The team wants to rename it to "full_name". What is the safe approach?
- A.Rename it in place; old apps will update themselves
- B.Delete the field and tell users to reinstall
- C.Treat it as a breaking change: add the new field or a new version and keep the old one until clients move
- D.Return 500 for old app versions
Answer & explanation
Correct answer: Treat it as a breaking change: add the new field or a new version and keep the old one until clients move
Renaming breaks installed apps; additive changes and versioning keep them working.
Can you get the rest right without peeking?
Take the timed Quiz: API Design quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →