How to write Pre_requituites Script in K6 for a Particular HTTP method

Hey Folks.
How to write Pre_requituites Script in K6 for a Particular HTTP method.
In my case Creating a course With First API and API return course_id and I passed the same Course_id in the 2nd Second API for updating the created course with a Patch request.
and 3rd Delete Course API is deleting the course with course id
But I don’t want to delete actually course id because course id required for my all APIs if it’s deleted then API all APIs getting Failed.

How to resolve this issue?

I don’t understand what you are trying to achieve and what the problem you’ve encountered actually is, sorry :disappointed: