Using API for PuppetRun instances

Hi!

I saw the possibility of using the api foreman to run the agent nodes in the
puppet, but I wonder how I can mount a request with curl or wget I can put
in jenkins.

The jenkins trigger the puppetrun after the rpm package is promoted.

Thx!