package stepruns

import (
	"github.com/labstack/echo/v4"

	"github.com/hatchet-dev/hatchet/api/v1/server/oas/apierrors"
	"github.com/hatchet-dev/hatchet/api/v1/server/oas/gen"
)

func (t *StepRunService) StepRunUpdateRerun(ctx echo.Context, request gen.StepRunUpdateRerunRequestObject) (gen.StepRunUpdateRerunResponseObject, error) {
	return gen.StepRunUpdateRerun400JSONResponse(apierrors.NewAPIErrors(
		"StepRunUpdateRerun is deprecated; please use V1TaskReplay instead",
	)), nil
}
