Use the /query resource to send a session relevance query like ids of BES actions whose (name of it starts with "PP_PatchInstall")
to get the action ID.
Then you’ll need to get /api/actions/actionid to retrieve the XML definition of the action, update to the new Target criteria you want, and then POST it back to /api/actions