Skip to content

← All questions

The API added a field — how do I re-record so the old entries stop coming back?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Backend renamed a field. I re-recorded:

bash
bun run sdods har record -p demo-shop -e staging -t @har:posts

The scenario passes now, but the file grew instead of being replaced, and the old response with the old field name is still sitting in there. I would rather not ship a recording that contains a payload the service can no longer produce. Is there a prune step I am missing?

3 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related