How to play a job using API and needs to mention which branch that needs to trig

i have to play a button on my pipeline with diffenrt branches. May i know how can i perform that?

Regards,
Madhu

As I know (and I may be wrong) you cannot play a specific job via API, but you can play the whole pipeline via Trigger API: https://docs.gitlab.com/ee/ci/triggers/#triggering-a-pipeline. Does it help?