REST API solution for re-running failed targets

Hey guys, I have been digging through the API information and seeing lots of information, but I want to make sure I am going about this the correct way. Since I am using SA to run these jobs, I am guessing that I will have to use the SA RestAPI. I have many server automation jobs that are running many steps at night. Basically, instead of having to track through those errors, I can look at a few text files that will contain the files that were left in the staging directory, which only exist when the jobs failed at night.

What is the best way to go about re-running a specific automation plan against these endpoints? I think I need to find a way to parse the files so I have the computer names only, somehow target just these machines against an automation plan?? I am only starting to play with the get commands currently, I am very new to the REST API, fyi :slight_smile: If someone can point me in the right direction, I would appreciate it. Thanks in advance

I think I know what I need to now for this, just have to figure out how to parse the machines out of the list of leftovers, then figure out how to take that list and replace the correct machines in the XML with the leftovers list and re-import the automation plan with the SA REST API. Still, I need to figure out the first and second piece. First one being here

Sorry, didn’t mean to open up two different issues.