Replay partial traffic for a visit id

Let’s say I have 20 actions for a visit. I want to replay an HTTP request which will add an action at 12th position. When I’m hitting the request using HTTP tracking API, it’s getting added at the end even after changing the _idts and _viewts in the URL.
How do I add data in the middle of a visit rather than at the end?